Form Builder Pulldown Values
Posted: Wed Feb 11, 2009 10:25 am
Hi,
I currently have Form Builder 0.5.11 installed and have a form build which, using a Javascript call on a button updates preview fields depending on the values of inputs in my form. My only stumbling block is getting the value of my dropdown select options to be the same as the value displayed instead of being a numeric value. This is because my JS call grabs the value of the option field to use in the preview area.
So my question is, where can I find the code that creates the option elements and can I alter this to pull in the name and value added when creating the element using FB rather than the numeric value currently used?
I have scoured the FieldBase.class.php and PulldownField.class.php files, but can't see where the options are created.
Fingers crossed.
Thanks
I currently have Form Builder 0.5.11 installed and have a form build which, using a Javascript call on a button updates preview fields depending on the values of inputs in my form. My only stumbling block is getting the value of my dropdown select options to be the same as the value displayed instead of being a numeric value. This is because my JS call grabs the value of the option field to use in the preview area.
So my question is, where can I find the code that creates the option elements and can I alter this to pull in the name and value added when creating the element using FB rather than the numeric value currently used?
I have scoured the FieldBase.class.php and PulldownField.class.php files, but can't see where the options are created.
Fingers crossed.
Thanks