Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Form Dropdown Check

Featured Replies

Hello,

We have a form running which is working well with our clients. It has various drop downs and a captcha script. For just one of the drop downs the boss requires that this must be activated / changed before the form can be submitted.

I have looked at various options and tried a number of scripts but none seem to stop the form being submitted.

I am happy to share the html code if needed.

I would be grateful for some further ideas.

Thankyou

Regards

Neil

How are you validating the form?

 

All you need to do is add a check to the validation to confirm at least on option has been selected. The actual code you use depends on how the form is validated.

  • Author

Thanks for coming back so quickly!

The drop down is for the named geographical area the customer lives in. Last week we had a number of people using the form who did not live in the areas we serve and so did not use this drop down.

We are now working on the idea that if they can't complete an area we serve, they can't complete the form. So in answer to your question would it be an entry, or a change is needed?

I am a little bit baffled by this but I am pretty certain it can be done.

Thankyou

Neil

The form is fine - it's the validation that needs sorting.

 

Need to see the site to offer more help as any advice depends on the contact form you are using.

 

If you want to keep it private you can send the URL in a PM.

 

However....

 

Lets suppose Bob wants to use your services and is not in the list of places but is in fact closer than someone in the opposite direction. Making the dropdown mandatory means you have now lost a potential customer.

  • Author

Hello,

Sorry about the delay.

I have tried 5 or 6 pieces of script for this and have cleared each one after trying them.

I can send you a link to the form and provide the html as needed.

You make an interesting point about the required drop-down. This a new business which is in the centre of the delivery area and has little or no leeway to extend further at this stage. For the limited time they are open they are flat-out and so cannot cope with, and are not looking for extra business outside their given area.

Thanks

Neil

  • Author

Thanks for the help.

I had overlooked that option needed to be empty as in ""

Working now.

Neil

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.