Posts

Showing posts with the label google forms

How to add a new line in Date type question in google forms

Image
 In Google forms, adding a new line in Date type question can be done by running the below script in the script editor. To follow the steps, please watch the video: Code to Run :  function   addLineBreaks () {    var   form  =  FormApp . getActiveForm ();        // find form items you need     var   questions  =  form . getItems ( FormApp . ItemType . DATE );       for ( i  =  0 ;  i  <  questions . length ;  i ++)   {      var   title  =  questions [ i ]. getTitle ();      questions [ i ]. setTitle ( title . split ( ". " ). join ( "\n" ));   } }

How to add a new line in the Title in google forms

  For adding title in google forms follow the steps given in the below video: Video link for reference The code to be copied for adding new line in title is: function   AddNewLineTitle () {       var   form  =  FormApp . getActiveForm ();    form . setTitle ( 'Form Name \n testing new line' ); }

how to add new line in google forms Linear scale questions

  For new line in google forms questions if we enter, its not working. so for fixing this issue, below code can be run in the script editor: Code to be added: function addLineBreaks() {   var form = FormApp.getActiveForm();       // find form items you need         var questions = form.getItems(FormApp.ItemType.SCALE);      for(i = 0; i < questions.length; i++)   {     var title = questions[i].getTitle();     questions[i].setTitle(title.split(". ").join("\n"));   } }