Hey Guys,
How can i check to see if a user has entered the correct value using eform? For example: What is 2 + 2? If the user enters any other number besides 4 it will send an error and not submit the form.
Thanks
stalwil
Hi,
I think the answer is no. But you could write some Javascript that would check for that, though.
-
☆ A M B ☆
- 24,524 Posts
Please don’t depend on Javascript validation for anything serious; it’s only good for the visitor’s convenience. You should always validate again on the back-end. It’s not at all difficult for those who know how to bypass Javascript validation.
You can use a set of custom snippet/functions and the eFormOnBeforeFormMerge and eFormOnValidate events to generate the math problem and validate the response.