Matching Fields (not email)

User 2525045 Photo


Registered User
4 posts

Rather than use Captcha, I want to use either two matching fields, e.g., one field has a placeholder that says flower and the next field requires that the person type the word flower so that it matches the other field; or force one field to be blank, e.g., the placeholder text says "delete the text in this field," and the person has to backspace it out; or ask a question like "What is 6 + 2?" and force the field to accept only one answer.

I feel like I should be able to do this with the Regular Expression, but I've looked at all the examples, and it's not clear to me what I should do. Can you guide me? Captcha is good, but frequently very frustrating to get the text correct. I have many complaints from people who can never get it write and they are furious, so I would like to avoid using Captcha.
User 2147626 Photo


Ambassador
2,958 posts

Hi Robin, easy fix... Using the Web From Builder simply add a 'required' field using a 'checkbox'. Ask the question 'Are you human?' The user will be required to check the box. This should keep most auto-spammers out. :cool:
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2525045 Photo


Registered User
4 posts

Genius. So simple, I couldn't even think of it.

I was just getting ready to try this in a regular expression field: /^[9]+$/

And ask what is 6 + 3?

Would that have worked, too? I know nothing about Reg Expressions, but I was Googling it.
User 2147626 Photo


Ambassador
2,958 posts

Why, yes! You can do it that way. Just add a 'Regular Expression' to your form. Go to properties and change the 'Label' to 'What is 6 + 3 ?" Then change the RegEx to 'custom' and make the expression /^[9]+$/

That'll work just fine. You'll also want to make it 'Required'.
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.