Display a Custom Alert Message on Google Forms

1,230 views
Skip to first unread message

John Tan

unread,
Aug 8, 2021, 9:33:49 AM8/8/21
to Google Apps Script Community
Hi, how do I display a custom alert message on Google Forms either when an incorrect value for a field (the default data validation is not adequate) is entered or upon clicking the submit button. Thank you for your advice! 

Alan Wells

unread,
Aug 8, 2021, 9:37:42 AM8/8/21
to Google Apps Script Community
A Google Form doesn't have the capability to display a custom message to the user, except for the message that gets displayed after the Form is submitted.  If you absolutely need that capability, then you'd need to use something other than a Google Form.

John Tan

unread,
Aug 8, 2021, 10:53:02 AM8/8/21
to Google Apps Script Community
That's what I'm afraid to hear. I have been searching for a solution to this problem without success. Thank you for your prompt response!

Alan Wells

unread,
Aug 8, 2021, 12:49:44 PM8/8/21
to Google Apps Script Community
If you want to stay with Google products, then you could use an Apps Script Web App, and create an input form from HTML, CSS and JavaScript.  There's also the possibility of imbedding the Apps Script Web App into a Google Site.

CBMServices Web

unread,
Aug 8, 2021, 1:03:29 PM8/8/21
to google-apps-sc...@googlegroups.com
Google forms does have rudimentary validation of input and you can put a custom message that is shown when validation fails. But no pop ups or complex validation of input is possible. If you need to do that, you should go with Alan's suggestion and create your own html form and can use a web app to receive the input from the form.

--
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/6a979b7b-e960-41a0-b2fd-23a017840ec8n%40googlegroups.com.

John Tan

unread,
Aug 8, 2021, 9:50:11 PM8/8/21
to Google Apps Script Community
Thanks for your suggestions, Alan & George! Hopefully, Google Forms could incorporate a feature to display custom alert pop-up message in future.   
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages