Page 1 of 1

formbuilder dependency dynamic selects

Posted: Wed Feb 20, 2008 10:47 am
by essexboyracer
I am trying to integrate the following

http://www.dynamicdrive.com/dynamicinde ... ndency.htm

into a large 7-page formbuilder form. I have the javascript in the head and the script in the webroot. Where I have got unstuck is adding the label tags around form elements then adding the class to implement dependency amongst form fields. Using their example...

Code: Select all

<label>SSH<input type="checkbox" name="ssh" class="DEPENDS ON os BEING linux"></label>
I think i am also having trouble grabbing and passing the form name to the script, all i can get is the form id from the form tag, i did read somewhere on this forum that i can assign that to a smarty variable and pull it into the javascript in the head dynamically. Any Ideas?