History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SCAFF-193
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: David Peterson
Reporter: Kyle
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Scaffolding Plugin

Form Validator doesn't work on drop down menu's

Created: 30/Jan/08 02:20 AM   Updated: 01/Mar/08 03:34 AM
Component/s: {list-data}
Affects Version/s: None
Fix Version/s: 2.7-dr9

Time Tracking:
Not Specified

Environment: n/a


 Description  « Hide
did verify that it is a parameter: http://www.customware.net/repository/display/AtlassianPlugins/list-data

It says "If true, a non-empty item must be selected." Initially, the list doesn't have anything under the first List-Option, its blank. But the form still saves anyways, and it doesn't require it.

The 'required' parameter does work on {text-data} just fine.

Below is a simple example of it not working. I am running on Confluence v 2.58

{list-data:Choose|required=true}
{list-option}
{list-option}Value A{list-option}
{list-option}Value B{list-option}{list-data}

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
David Peterson - 01/Mar/08 03:34 AM
Two parameters have been added to {list-data}: 'blank' and 'blankText'. To have an empty option at the start of the list set 'blank=true'. If you would like to have some text (e.g. '[None]') in the non-option, specify 'blankText=[None]'. Eg:
{list-data:My Options|required=true|blank=true|blankText=[Select an option]}

If the item is required and the '[Select an option]' item is selected, the user will be prompted to select a valid option. If it's optional, the current value of the list will be null.