Reputation: 5199
I've a form that I created using google forms. Now there two optional fields. I did not make these two fields as required fields. Now what I want is that if the user provides a value to the first optional field then the second optional field becomes mandatory. How can I achieve that. Also how to restrict a text field to accept only numbers. I'm just starting out on google app scripts. Kinda missing something here, in spite of setting up a script with just an alert inside a function which is triggered on form submit nothing happens. Please help me out.
Upvotes: 1
Views: 1845
Reputation: 291
As of right now, Google Forms does not have the ability to do form validation until after the form is submitted.
If you wanted in-form validation, you could create your own form using the script's UiApp or HTMLService. There are some tutorials for validating within that context.
Upvotes: 2