Tags:
create new tag
view all tags

SID-00091: Dropdown List Based On Selected Value

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Dropdown List Based On Selected Value
SupportCategory CategoryForms
TWiki version 4.2.4
Server OS Centos 5.2, Linux 2.6.18
Web server Apache 2.2.3
Perl version 5.008008
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2009-03-12 - SeanCMorgan
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.