How to add a line break in file upload type question in google forms
For file upload type, add the below code in script editor in google forms and run this to add a line break for the question . Please refer the video below to see how to do:
code:
function addLineBreaks()
{
var form = FormApp.getActiveForm();
// find form items you need
var questions = form.getItems(FormApp.ItemType.FILE_UPLOAD);
for(i = 0; i < questions.length; i++)
{
var title = questions[i].getTitle();
questions[i].setTitle(title.split(". ").join("\n"));
}
}
This comment has been removed by the author.
ReplyDelete