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