Display HTML-formated message box in Google Apps Script?
-
02-10-2019 - |
Question
The Browser.msgBox("hello")
method lets me display the text "hello" to the user in a message box, but if I put any HTML in there, for example "Hi there", the user just sees the HTML tags.
Is there a way to display a popup with simple HTML to the user from withing google apps script?
Solution
If you want to display a more complex UI, check out the new UIApp service google added:
http://code.google.com/googleapps/appsscript/service_ui.html
The documentation is pretty sparse, so check out their examples:
http://code.google.com/googleapps/appsscript/guide_user_interfaces.html
OTHER TIPS
You can also directly use UI.showModalDialog.
https://developers.google.com/apps-script/reference/base/ui#showModalDialog(Object,String)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow