Hi! We have a simple 'call-me-back' form on one of our sites. I't mostly used by spammers...
Is it possible to:
- Validate the phone numberon NOT being 123456 (this exact number)?
- Validate a text area on NO links?
Are there other usefull tips? We could add a captcha, but we do want to keep the form real simple for normal users.
Is it possible to:
- Validate the phone numberon NOT being 123456 (this exact number)?
- Validate a text area on NO links?
Are there other usefull tips? We could add a captcha, but we do want to keep the form real simple for normal users.
Hi jj135,
First I recommend that you do add a Captcha - the Classic HoneyPot (see this FAQ) is invisible to the normal user and doesn't depend on JavaScript or anything much else.
You can add specific validation using an Event Switcher action in the form On Submit event. Set the event list to just fail and add PHP to check for those values e.g.
Add something - a Redirect? to the On Fail event.
Bob
First I recommend that you do add a Captcha - the Classic HoneyPot (see this FAQ) is invisible to the normal user and doesn't depend on JavaScript or anything much else.
You can add specific validation using an Event Switcher action in the form On Submit event. Set the event list to just fail and add PHP to check for those values e.g.
<?php
if ( $form->data['phone'] == '12345' ) {
return 'fail';
}
. . .
?>
Add something - a Redirect? to the On Fail event.
Bob
This topic is locked and no more replies can be posted.