Fake Submission to Download Brochure

Hi There

I am currently working on a project where users can download brochure upon submitting a Name, Phone and Email. All working fine.

However, is there a way I can restrict (As much possible at least), users just adding 4 Digits for phone ‘mobile’ (Cell phones) or people adding ‘Joe@bloggs’ only, as currently it will submit as long as I add @ and numbers to the respective Text Fields.

Notes on Emails:

This is a domestic product (Childcare) and lots of users will be gmails and AOL’s for example.

Notes on phone:

I am trying to capture mobiles (Cell phones) in Western Australia and typically will typically start with ‘0’ and have 10 numbers.

I have not a developer, however any help or guidance on this would be highly appreciated. Thank you.

Hi there,

Webflow forms offer several built-in validation options for phone numbers and email addresses. For email fields, Webflow automatically validates the format to ensure it contains an @ symbol and proper domain structure. For phone numbers, while the field accepts various formats, you can add custom validation using these methods:

  1. Use the “Required” field setting to ensure the field isn’t left empty
  2. Add a custom validation pattern using regex in the field settings
  3. Implement custom form validation using custom code if needed

Additionally, you can enhance your form security by enabling spam prevention measures through the form settings panel.

Hopefully this helps! If you still need assistance, please reply here so somebody from the community can help.

On the input you can use custom attributes of minlength, maxlength and pattern to further control validation.

Here are some notes on phone numbers;

and emails;

Thank you, Michael and Webflow team member. This is great. I’ve started with the Custom Attribute ‘Minimum’ . Already better. thank you again and I will investigate these. Much appreciated.