Contact Form: Dropdown inherits values of radio buttons
Posted: Thu Mar 08, 2007 8:45 pm
Using the dynamicform.tpl, add both a radio button and a dropdown on the form using this form field string:
The drop down contains the values Yes, No, Choice#1, Choice#2, Choice#3. Am I specifying the string incorrectly, or is this a problem in either the tpl or php?
The reverse of this is also true - if the dropdown is first in the string, and the radio second, the radio options inherit the dropdown options.
As long as I am discussing the contactform, it would also be nice to have a label after a checkbox (like a radio button) IF such a label is provided. By default, the default tpl shows the same {$field.name} text before AND after the checkbox:
My opinion, is that an optional label be allowed in the string, and this label appears after the checkbox. If that cannot happen, I think, at minumum, the {$field.name} should not follow the checkbox.
Code: Select all
Radio Button;radio;Yes,yes|No,no:Dropdown;select;Choice#1,choice#1|Choice#2,choice#2|Choice#3,choice#3The reverse of this is also true - if the dropdown is first in the string, and the radio second, the radio options inherit the dropdown options.
As long as I am discussing the contactform, it would also be nice to have a label after a checkbox (like a radio button) IF such a label is provided. By default, the default tpl shows the same {$field.name} text before AND after the checkbox:
Code: Select all
<input class="frm_check" type="checkbox" name="{$field.id}" id="{$field.id}" {$field.default} />{$field.name}