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

 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 = 0i < questions.lengthi++)
  {
    var title = questions[i].getTitle();
    questions[i].setTitle(title.split(". ").join("\n"));
  }
}

Comments

Popular posts from this blog

how to add new line in google form questions | Fix for next line issue in google form questions

How to add new line in dropdown type question in google forms