You are here: Foswiki>Tasks Web>Item11666 (22 Oct 2012, SvenDowideit)Edit Attach

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

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.5
Target Release: patch
Applies To: Engine
Component: Forms
Branches: Release01x01 trunk
Reported By: SvenDowideit
Waiting For:
Last Change By: SvenDowideit
docco says:

Values
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.

C.

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
WaitingFor
Checkins distro:21973d9e8a53 distro:b7c67e39a42a distro:45e9c85958b2 distro:ffe1061780f6
TargetRelease patch
ReleasedIn 1.1.5
CheckinsOnBranches Release01x01 trunk
trunkCheckins distro:b7c67e39a42a distro:ffe1061780f6
Release01x01Checkins distro:21973d9e8a53 distro:45e9c85958b2
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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy