Page 1 of 1

Combobox validation

Posted: Sat Oct 30, 2021 2:49 am
by gregbarnes
Hi All! I have a combobox (version 16.4.0) in my form, which is used to select a month (Feb - Nov). I need a way to make sure only the month is selected from the drop down list. When humans fill in the form, it works great and I receive the data to my email address. When non-humans send the form it lists the month as a number. Is there a way to only accept the months in the list and nothing else?
Form is here to see the months in the drop down list. https://www.isacimages.com/contact_us-smc.php
It's accessible from the menu system SPECIAL EVENTS > SHADOWS MUSIC CLUB PERTH > SET LIST SUBMISSION
Thanks in advance.

Re: Combobox validation

Posted: Sat Oct 30, 2021 7:01 am
by Pablo
The link does not work for me.

The combo-box does support validation, however this works with JavaScript so if someone disables JavaScript then this will no longer work.
There is no way to prevent this, other than by writing a server side script (PHP) to validate the input.

Re: Combobox validation

Posted: Sun Oct 31, 2021 6:46 am
by gregbarnes
Thanks for the reply. As I don't know anything about server side scripts, I guess I'll put up with the spammers.
I do block countries from my website so only AU, US, GB and NZ are allowed. I'm sure the scammers get around it but at least I have reduced it 90%.

Re: Combobox validation

Posted: Thu Jan 20, 2022 1:51 pm
by luputu
how can we create a form with combox (drop-down list) but with the Value taken from table mysql? how is the syntax to be writen on custom regular expresion value?

Re: Combobox validation

Posted: Thu Jan 20, 2022 2:04 pm
by Pablo
There is no standard option for this, because this requires (PHP) programming.
You can add custom code via the HTML object.

Note that this is unrelated to form validation.

Re: Combobox validation

Posted: Thu Jan 20, 2022 4:02 pm
by BaconFries
@luputu see the following url. Note this is for information only, if you use it is understood that you will understand how to implement into or use with the software yourself.
Creating a drop down list box using data from MySQL table
https://www.plus2net.com/php_tutorial/list-table.php