javascript - How do I manipulate with Google Forms on Form View, client side -


this code works fine if run when form editor opened:

var ui = formapp.getui();       var response = ui.prompt('getting know you', 'may know name?', ui.buttonset.yes_no);        // process user's response.       if (response.getselectedbutton() == ui.button.yes) {         logger.log('the user\'s name %s.', response.getresponsetext());       } else if (response.getselectedbutton() == ui.button.no) {         logger.log('the user didn\'t want provide name.');       } else {         logger.log('the user clicked close button in dialog\'s title bar.');       } 

but not work on form view, when filling it, dont understand why google made work way, benefit of me seeing dialog box , not 1 filling it... also, possible can response before form being submited can validate field using javascript function?

alternatively how can achieve such things on google forms apps script?

google apps script runs on google form editor, not on form view.

similar answers other members similar questions:


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -