Posts

Showing posts from March, 2022

How to add new line in google form confirmation message

Image
Confirmation messages are displayed after submitting the form / questions by the receiver. To add new line in the confirmation message, run the below script in the script editor. function   addLineBreaks () {    var   form  =  FormApp . getActiveForm ();        var   title  =  "Thanks for your submission. We will get back to you sooon" ;    form . setConfirmationMessage (  title . split ( ". " ). join ( "\n" ));    } For reference :

How to add new line in the 'add title and description' section in google forms

Image
 Adding new line in the section 'add title and description'  in google forms can be done by running below code in the script editor : code to copy: function addLineBreaks() {   var form = FormApp.getActiveForm();       // find form items you need    var questions = form.getItems(FormApp.ItemType.SECTION_HEADER);      for(i = 0; i < questions.length; i++)   {     var title = questions[i].getTitle();     questions[i].setTitle(title.split(". ").join("\n"));     var desc= questions[i].getHelpText();     questions[i].setHelpText(desc.split(". ").join("\n"));   } } Below video will give complete steps to do this :