and when I select option no (value=2), click edit button and I don't fill all required fields, edit page redirect to back and select reverted to option yes(value=1). I have the same problem when I edit link suchlike in this https://www.webmastersite.net/forums/thread/6022
is simply bad HTML. You can't pass a multiselector's value with a string, you have to use an array, hence how the script properly adds the html when you use the add fields page.
Comments on Select field reverts to field
Experienced
Usergroup: Customer
Joined: Aug 27, 2005
Location: Czech Republic
Total Topics: 48
Total Comments: 82
Hallo Paul,
I have problem suchlike in this thread : https://www.webmastersite.net/forums/thread/6022.
This code in edit.tpl works correct (newselect is new add linkfield):
but if i use this codes:
or
or
etc.
and when I select option no (value=2), click edit button and I don't fill all required fields, edit page redirect to back and select reverted to option yes(value=1). I have the same problem when I edit link suchlike in this https://www.webmastersite.net/forums/thread/6022
Thanks for Your help.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
is simply bad HTML. You can't pass a multiselector's value with a string, you have to use an array, hence how the script properly adds the html when you use the add fields page.
The onclick code there is unsupported, yes. Changed to support such extra html in 3.3.7.
Experienced
Usergroup: Customer
Joined: Aug 27, 2005
Location: Czech Republic
Total Topics: 48
Total Comments: 82
Thank You Paul,
Your support is very quick and high-quality. Thank you very much, using javascript is o.k.
B.