SID-00091: Dropdown List Based On Selected Value
| Status: |
Answered |
TWiki version: |
4.2.4 |
Perl version: |
5.008008 |
| Category: |
CategoryForms |
Server OS: |
Centos 5.2, Linux 2.6.18 |
Last update: |
17 years ago |
I am using the
Know.WebForm template and have changed the OperatingSystem field to a dropdown box (type select). I would like to have the OsVersion field to populate in a dropdown box only some predefined values based on the selected OperatingSystem value.
e.g. When I select "OsWin" from the OperatingSystem field, OsVersion would display a list of Windows OS version (95, 98, XP, Vista... ) and when I select "OsLinux" from the OperatingSystem field, OsVersion would display a list of Linux Os version ... etc.
I tried a couple of test using formfield with no luck, the closest support answered I found was called
PersistentSelectedValues by ChengappaCB, could you please help and post the correct method to do this?
much appreciate.!
--
KhaiDo - 09 Feb 2009
Discussion and Answer
You will need javascript to do that. For an example, see
http://www.javascriptkit.com/javatutors/selectcontent2.shtml
--
SeanCMorgan - 12 Mar 2009
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.