close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validate dynamic dropdown form

Thread began 8/28/2014 9:49 am by russb335115 | Last modified 12/05/2014 11:58 am by Jason Byrnes | 3504 views | 38 replies |

russb335115

Validate dynamic dropdown form

I had a premier support session where we created 5 dynamic drop down forms. The issue I'm having is that if a user doesn't select anything from the drop downs and hits submit the results page populates with the complete product database (over 300 products). What I need to do is make it so each drop down has to have a selection or the form can't be submitted.

Is there a tutorial that can help me do this? I tried the one for the text field server validation but it didn't work.

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

in each select list, add a blank options:

<option value="">make a selection</option>

make sure it is the first option for the list, then use server validation using the Required not blank validation type.

Sign in to reply to this post

russb335115

I must be doing something wrong. Should I be selecting the drop down that I what the validation on? What are the other setting I should be selecting?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, for the validation type select required not blank, for the server variable, click the lightning bolt and select the list.

repeat for each select list.

Sign in to reply to this post

russb335115

That did it, thanks Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

russb335115

I need some help. I tried to implement the validation which seemed to work only on half of the search forms. I now have any issue were the search functions aren't finding the results pages.

Can you help me?

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

russb335115

See pm

Sign in to reply to this post

Jason ByrnesWebAssist

in your template you have a plugin for the searchProducts/search.php page.

on that page you have a validation server behavior set to trigger on any form post.

since it triggers on any form post, it is triggering when your search form tries to post tot he results pageyou should set the validation on that page to use the ProductName URL variable binding instead of any form post.

Sign in to reply to this post
loading

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