Page 1 of 1

Formbuilder compare number

Posted: Mon Aug 17, 2015 1:53 pm
by steven_germany
Hi,

just a simple little thing - or maybe not ...?

In an form i have an input-field like this "8 + 4 = ?"
(a small thing to prevent from bots)

And after hitting the submit-button i want
the form to check the input - in this case to be "12" ...

Any simple ideas?

Re: Formbuilder compare number

Posted: Mon Aug 17, 2015 2:51 pm
by Rolf

Re: Formbuilder compare number

Posted: Tue Aug 18, 2015 3:28 am
by Jeff
You can use the validation regex for the text field.

Re: Formbuilder compare number

Posted: Tue Aug 18, 2015 8:24 am
by steven_germany
Hey Jeff ...

can you explain me how to do it?

Re: Formbuilder compare number

Posted: Wed Aug 19, 2015 11:14 pm
by Jeff
Select "Match Regular Expression" under Field Validation. Then fill in the "Validation Regex:" field on the Advanced Tab with what you want it to validate with. The Regex can be as simple as "12" to match 12 or more complex.

Learn More: https://www.google.com/webhp?q=regex%20tutorial
Test it: http://regexpal.com/