How to add new line google forms checkbox type question
This is the code to be added in script editor for adding new line google forms Checkbox type question.
code to be added:
function addLineBreaks()
{
var form = FormApp.getActiveForm();
// find form items you need
var questions = form.getItems(FormApp.ItemType.CHECKBOX);
for(i = 0; i < questions.length; i++)
{
var title = questions[i].getTitle();
questions[i].setTitle(title.split(". ").join("\n"));
}
}
Comments
Post a Comment