Hello
I need to "select" the appropriate item in an option list - which is inside of a block.
Trying to do this using "export" plugin to create a var that can then be used to check the item in the select list.
This is the block
<locs1>
<table>
<tr><td>Name:</td><td> <input type=text name='name' value='[active.name;block=locs2;export]' size=29 maxlength=120></td></tr>
<tr><td>State:</td>
<td>
<select name='state'><option value='' > - - - - U.S. States - - - - </option>
<option value='AL' >Alabama</option>
<option value='AK' >Alaska</option>
<option value='AZ' >Arizona</option>
<option value='AR' >Arkansas</option>
<option value='CA' >California</option>
<option value='CO' >Colorado</option>
<option value='CT' >Connecticut</option>
<option>[active[[active.#;protect=no;]].state;ope=html;select]</option>
</select>
</td></tr>
</table>
</locs2>
|
As the block repeats I am seeing in the results in browser page source
for block #1
<option>[active[1].state;ope=html;select]</option>
and for block #2
<option>[active[2].state;ope=html;select]</option>
|
but as you can see the variable substitution is not taking place.
Can anyone see what's wrong with this?
Or is there a better/proper way to do this ???
Thanks for any ideas
TomH