Wondering if there’s a way with Make.com’s Google Form integration to add “response validation”. In particular I want to add a regex validation to a “Short Answer” field for phone number to ensure a proper phone number is entered.
Looking at this article (Google Forms Phone Number Validation (Easiest Way in 2024)) it seems like there’s a “Response validation” property that allows this in Google Forms but I couldn’t find this in the Make.com integration.
Does anyone know if this type of validation is possible?
You can have the responses from a google form sent directly to a scenario via webhook. So this way the phone number can be validated within google forms and sent to your scenario in the desired format. There wouldn’t be a need to validate it again within the scenario.
Hope this helps!
Yeah that would work but that would be after the user submitted the form. I was hoping the validation would happen in the form so they get immediate feedback to fix it. If they submitted then it’s too late as they can’t fix it. So when I saw that Google Forms had the response validation field I thought that would work but doesn’t look like the Make.com integration supports that.
The field validation is within Google forms itself. When a user enters the data it comes through as invalid within google forms and does not allow the use to continue. So if user is forced to enter in the correct format Make will recieve this value.
Example:
I try to enter in a phone number in the field. Google field validation says it’s incorrect and will not let me continue. Finally i enter in the phone number in correct format and now i can submit my form. Make recieves this data and runs through the scenario.
In the example above Make will never recieve a phone number in an incorrect format because the user will not be able to submit the form.
There is no need to add a form validation module. The validation occurs on the form itself before it is submitted.
Hope this clears up the confusion.
Yes, I understand that. However my point is the Google form is initially being created by the Make integration, I’m not manually creating the form (if I manually create it I can use the response validation). And when creating the form via Make it doesn’t allow me to create the form with the response validation needed to validate the phone number. That is the problem.
Ah i see,
Yes then you are correct. The module does not have a way to add in field validation and unfortunately the google form api does not have an endpoint to set a field validation either.
You can either find another form creator to use or a work around can be to have the field be validated within the scenario and have an email sent back to user to resubmit thier form if the answer is invalid.