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?
Formbuilder compare number
-
steven_germany
- Forum Members

- Posts: 34
- Joined: Tue Apr 21, 2009 6:52 pm
Re: Formbuilder compare number
http://www.cmscanbesimple.org/blog/hone ... ormbuilder
http://www.cmscanbesimple.org/blog/addi ... ook-module also works for Formbuilder
http://www.cmscanbesimple.org/blog/addi ... ook-module also works for Formbuilder
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Formbuilder compare number
You can use the validation regex for the text field.
-
steven_germany
- Forum Members

- Posts: 34
- Joined: Tue Apr 21, 2009 6:52 pm
Re: Formbuilder compare number
Hey Jeff ...
can you explain me how to do it?
can you explain me how to do it?
Re: Formbuilder compare number
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/
Learn More: https://www.google.com/webhp?q=regex%20tutorial
Test it: http://regexpal.com/

