close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

dynamic dropdown, data persist and change field from disabled to enabled

Thread began 7/19/2016 9:17 am by tony | Last modified 7/19/2016 10:58 am by Ray Borduin | 269 views | 1 replies |

tony

dynamic dropdown, data persist and change field from disabled to enabled

Hi Ray,
I'm having a little problem trying to accomplish this:
1- the user select an item from a dynamic dropdown menu 1 (ok)
2- the dropdown menu 2 is populated by array (ok)
3- if the user select a specific item in the dropdown menu 2, a third field (set as disabled by default) should change to enabled (ok; I used a bit of jquery)
4- if validation fails, all selected data should be preserved (KO)

I already applied all persist data bindings, and when the page is submitted I get:
1- the user selected dropdown is ok (it uses persisting data) (ok)
2- the dropdown menu 2 loads the first option, not the persisting one
3- the disabled field is still disabled because the dropdown menu 2 is reset to the first option
4- same as before: only the first dropdown menu preserve selected data

How can I solve this?
I attached the page, just in case you can help me.
TIA
tony

Sign in to reply to this post

Ray BorduinWebAssist

Using the body onload event, after populating the sub-list, you would need to also set the value in the child list to the persistent value. It appears you have missed that step.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...