Ho to add new line date type question in google forms
To add new line in google forms date type question, add the following code 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.DATE);
for(i = 0; i < questions.length; i++)
{
var title = questions[i].getTitle();
questions[i].setTitle(title.split(". ").join("\n"));
}
}
Comments
Post a Comment