Custom validation in Google Forms

456 views
Skip to first unread message

Michal Rajecký

unread,
Mar 28, 2022, 12:11:59 PM3/28/22
to Google Apps Script Community
Hi there! 

I would like to set a custom validation rule on a text item in Google Forms. Specifically, I need the value to consist of 10 digits and the whole number to be divisible by 11. As far as I know, FormApp.createTextValidation() doesn't support custom rules.

Any suggestions would be highly appreciated! I am struggling a lot :D

Kind regards.

Jonathan Butler

unread,
Mar 28, 2022, 4:54:56 PM3/28/22
to google-apps-sc...@googlegroups.com
I think if you need this level of customization you will probably need to create an HTML form and run a function on the submission.

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/3e79be14-3d1e-4f65-896b-7f744454bd72n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages