Foswiki on GitHub is open for business! Next release meeting: Monday September 29, 1300Z

Item11666: Looks like the defaulting of checkboxes in dataforms is broken (at least it is not doing what the docco says)

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine Forms  
docco says:

For checkboxes, radio buttons and dropdown lists: predefined input to select from. More advanced: this can be a dynamically generated list of values.
The field value will be used to initialize a field when a form is created, unless specific values are given by the topic template or query parameters. The first item in the list for a select or radio type is the default item. For label, text, and textarea fields the value may also contain commas. checkbox fields cannot be initialized through the form definition.

my test in 1.1.4 says that the field is not set for edit screen (visual) and when its saved, the field is not in the topic META at all.

-- SvenDowideit - 17 Mar 2012

Fixed it.

-- CrawfordCurrie - 23 Mar 2012

And broke the unit tests. Thankfully after I built RC1.

Module Failure summary

InitFormTests has 2 unexpected results (of 10):
8 of 10 test cases passed(8)+failed(0) ok from 10 total, 0 skipped 0 + 2 = 2 incorrect results from unexpected passes + failures 1..5

-- GeorgeClark - 25 Mar 2012

tests fixed.


this is being reverted for 1.1.6, as it has more impact on users than a patch release should.

and any resolution to this impact is greater than should be done for a patch release too.

see Item11982

-- SvenDowideit - 22 Oct 2012

ItemTemplate edit

Summary Looks like the defaulting of checkboxes in dataforms is broken (at least it is not doing what the docco says)
ReportedBy SvenDowideit
Codebase 1.1.4, 1.1.3, trunk
SVN Range
AppliesTo Engine
Component Forms
Priority Urgent
CurrentState Closed
Checkins Foswikirev:14448 Foswikirev:14449 Foswikirev:14462 Foswikirev:14463
TargetRelease patch
ReleasedIn 1.1.5
CheckinsOnBranches Release01x01 trunk
trunkCheckins Foswikirev:14449 Foswikirev:14463
Release01x01Checkins Foswikirev:14448 Foswikirev:14462
Topic revision: r11 - 22 Oct 2012, SvenDowideit
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License