WebmasterSite.net
PHP scripts to enable your creativity
Home
Web Scripts
WSN Links
WSN Gallery
WSN Knowledge Base
WSN Forum
WSN Classifieds
WSN Directory
WSN AdUnblocker
WSN FormEmail
WSN InstaChat
WSN Redirector
WSN Webcomic
WSN Guest
Reviews
WSN For WordPress
WSN For Web Designers
Webmaster Resource Links
Register
Log In
Username
Password
Login
Forgot your password?
WSN Support Forums
Paid Scripts Support
drop down select reverting
drop down select reverting
Details
Discussion
4
Print
Comments on drop down select reverting
•
babrees
Expert
Usergroup:
Customer
Joined:
Aug 19, 2005
Location:
England
Total Topics:
391
Total Comments:
1303
•
babrees
#1 -
Quote
-
Permalink
Posted Nov 23, 2006 - 9: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
#2 -
Quote
-
Permalink
Posted Nov 24, 2006 - 8: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
#3 -
Quote
-
Permalink
Posted Nov 24, 2006 - 9: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:
editdog.tpl
(14 KB, 256 downloads)
•
Paul
developer
Usergroup:
Administrator
Joined:
Dec 20, 2001
Location:
Diamond Springs, California
Total Topics:
61
Total Comments:
7868
•
Paul
#4 -
Quote
-
Permalink
Posted Nov 30, 2006 - 12:36 AM:
Instead of the <option value...>s you can try using
{FUNC_SELECTOPTIONS[Dog,Bitch <,> Male,Female <,> {LINKSEX}]}
Search thread for
Go ►
Download thread as
text
HTML
Go ►
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on drop down select reverting
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
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>
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
It shouldn't, but might relate to where they are in the template.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
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:
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Instead of the <option value...>s you can try using
{FUNC_SELECTOPTIONS[Dog,Bitch <,> Male,Female <,> {LINKSEX}]}