Background
In a series of three videos, Selwyn demonstrates how to add a new value to Drop Down Box.
This is accomplished by adding "<Add a new Value>|__AddValue__" via the "Additional choice (Post)" option.
When a user selects <Add a new Value>, the onChange event fires some Javascript, that updates the look-up table and refreshes the Drop Down list with the new value.
Here are the videos:
Bug Found
The approach above works, provided the Cascading choices option is NOT enabled.
If:
The result is the Drop Down List will behave as if it is disabled. Users can't select <Add a new Value>.
DefineChoices.png
Other Options
I did attempt to specify the "<Add a new Value>|__AddValue__" (and some other permutations) in the "Display values for no choices found." parameter, but when selected, the onChange event will not fire.
A Fix is Needed
A new Boolean parameter needs to be added to the Define Choices DropDownBox configuration that will ALWAYS show the Additional Choices.
My Kluge
My workaround was simply to add a new button to do the job. Pretty ugly.
In a series of three videos, Selwyn demonstrates how to add a new value to Drop Down Box.
This is accomplished by adding "<Add a new Value>|__AddValue__" via the "Additional choice (Post)" option.
When a user selects <Add a new Value>, the onChange event fires some Javascript, that updates the look-up table and refreshes the Drop Down list with the new value.
Here are the videos:
- http://www.ajaxvideotutorials.com/V1...Dropdown_1.swf
- http://www.ajaxvideotutorials.com/V1...Dropdown_2.swf
- http://www.ajaxvideotutorials.com/V1...Dropdown_3.swf
Bug Found
The approach above works, provided the Cascading choices option is NOT enabled.
If:
- You have configured Cascading choices AND
- There are no records available in the look-up table, based on the Cascade filter
The result is the Drop Down List will behave as if it is disabled. Users can't select <Add a new Value>.
DefineChoices.png
Other Options
I did attempt to specify the "<Add a new Value>|__AddValue__" (and some other permutations) in the "Display values for no choices found." parameter, but when selected, the onChange event will not fire.
A Fix is Needed
A new Boolean parameter needs to be added to the Define Choices DropDownBox configuration that will ALWAYS show the Additional Choices.
My Kluge
My workaround was simply to add a new button to do the job. Pretty ugly.