close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Displaying validated entries and/or recordset values BUT in a dynamic drop-down menu?

Thread began 12/04/2018 12:04 pm by Nathon Jones Web Design | Last modified 12/05/2018 1:29 pm by Nathon Jones Web Design | 619 views | 3 replies

Nathon Jones Web Design

Thank you Ray.

Adding that to the dynamic select Server Behaviour, for the country field, seems to have done the trick and I've added it for the various region field options too but, because when the validation fails the page effectively reloads, it's not recalling the onChange behaviour that would have been initiated on the first submission of the form by the user selecting either the US or UK - both of which call dynamic sub-dependent drop-down menus.

Thankfully it does recall the State name and displays it, when validation fails, but if you'd selected, for example, the US you would usually be shown a drop down menu of states. When validation fails, you are just shown a standard input field. It's not ideal but to change it I'd need to look at the whole onChange behaviour which is currently this:

<script>
$("#Country").change(function() {

if ( $(this).val() == 425) {
$("#RegionsUS").hide();
document.getElementById('RegionsUS').disabled = true;
$("#RegionsOTHER").hide();
document.getElementById('RegionsOTHER').disabled = true;
$("#RegionsUK").show();
document.getElementById('RegionsUK').disabled = false;
}
else if ( $(this).val() == 426) {
$("#RegionsUS").show();
document.getElementById('RegionsUS').disabled = false;
$("#RegionsOTHER").hide();
document.getElementById('RegionsOTHER').disabled = true;
$("#RegionsUK").hide();
document.getElementById('RegionsUK').disabled = true;
}
else {
$("#RegionsOTHER").show();
document.getElementById('RegionsOTHER').disabled = false;
$("#RegionsUS").hide();
document.getElementById('RegionsUS').disabled = true;
$("#RegionsUK").hide();
document.getElementById('RegionsUK').disabled = true;
}
});
</script>



Is there any way of simplifying the WA jQuery Client Form Validation? The speech bubbles aren't mobile compatible and there are simpler ways of displaying the error, for example highlighting the input field in red with a small text message below it.

Thank you.
NJ

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...