Webmastersite.net
Register Log In

drop down select reverting

Comments on drop down select reverting

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Nov 23, 2006 - 11:40 PM:

I have two custom drop down select fields. Editing using a custom template. One field retains the selected option, the other doesn't!

field one reverts back to initially selected when opening edit:

<select name="sex">
<option value="Dog">Male</option>
<option value="Bitch">Female</option>
</select>

field two that retains option:

<select name="neutered">
<option value="No">No</option>
<option value="Yes">Yes</option>
</select>
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 24, 2006 - 10:33 PM:

It shouldn't, but might relate to where they are in the template.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Nov 24, 2006 - 11:00 PM:

attached is my custom edit template. The field which is reverting is sex. I did try moving it below the link that doesn't revert (neutered), but that didn't do anything.

Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 30, 2006 - 2:36 AM:

Instead of the <option value...>s you can try using
{FUNC_SELECTOPTIONS[Dog,Bitch <,> Male,Female <,> {LINKSEX}]}
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.