Calguys User Directory, custom form texts in search template
Posted: Tue Jul 22, 2014 1:00 pm
In search template the select element is created like this:
The result HTML looks something like this:
Is there a way I could change option’s visible text (the value should naturally be the same)? Like this:
The problem – I think – is that option tags are generated with html_option –fucntion.
Thanks in advance!
Code: Select all
{else if $data.fieldtype == 'select'}
<select name="{$actionid}ud_propvalue[{$propname}]">
{html_options options=$data.options}
</select>
Code: Select all
<select name="m1025dud_propvalue[food]">
<option value="-1">Choose</option>
<option value="Pizza">Pizza</option>
<option value="Steak">Steak </option>
</select>
Code: Select all
<select name="m1025dud_propvalue[food]">
<option value="-1">Choose</option>
<option value="Pizza">Order Pizza</option>
<option value="Steak">Enjoy Steak</option>
</select>
Thanks in advance!