You are here: Foswiki>Tasks Web>Item8590 (26 May 2010, ArthurClemens)Edit Attach

Item8590: FormPlugin: type=multiselect or checkbox returning only first value

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: FormPlugin
Branches:
Reported By: RalfKrueger
Waiting For:
Last Change By: ArthurClemens
I create a little form:

%STARTFORM{name="myform" action="view"}% 
%FORMELEMENT{name="Name" type="text" title="Enter your name:" mandatory="on"}% 
%FORMELEMENT{name="Option" type="checkbox" title="Choose option:" options="1,2,3"}% 
%FORMELEMENT{name="action" type="submit" buttonlabel="Submit"}% 
%ENDFORM%
   * Name = %URLPARAM{"Name"}%
   * Option = %URLPARAM{"Option"}%
...produces a form looks like this:

fw1.png

After pressing the submit-button only the first choice of option will be selected:

fw2.png

-- RalfKrueger - 21 Feb 2010

You must use %URLPARAM{"Option" multiple="on"}%.

Unit tested and documented in release 1.6.

-- ArthurClemens - 26 May 2010

 

ItemTemplate edit

Summary FormPlugin: type=multiselect or checkbox returning only first value
ReportedBy RalfKrueger
Codebase 1.0.8
SVN Range
AppliesTo Extension
Component FormPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r2 - 26 May 2010, ArthurClemens
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