user4354595
user4354595

Reputation: 11

google scripts for forms: line breaks?

Really simple (in theory): is there a way to insert line breaks in google forms questions? Here's what I'm looking at:

form.addScaleItem()
  .setTitle('Question?')
  .setHelpText('(1 = Poor 2 = Poorer')
  .setBounds(1, 7)
  .setLabels(lower= 'lower label line 1, lower label line 2',upper= 'upper label')
  .setRequired(false);

Ideally, I'd like to be able to put line breaks in the setHelpText and/or setLabels, but the usual html <>'s (br, /br, br/, p, etc.) don't work. Thoughts or workarounds?

Upvotes: 1

Views: 5558

Answers (1)

Pavel Agarkov
Pavel Agarkov

Reputation: 3783

You can do it by using standard js line break "\n":

var item; // = ...
item.setTitle("To be?\nOr not to be?");

Upvotes: 1

Related Questions