Change Google Forms "Rich Text Formatting" by apps script

Viewed 58

Google added Rich text formatting to Google Forms titles and descriptions last month, but when I use Apps Script to create forms titles, I can't get any changes except "\n". Would anyone be able to help me?

let questionHeader = form.addSectionHeaderItem();
questionHeader.setTitle("<b>"+question+"</b>\n"+"\b"+question+"\b0"); //test html format and test rtf format

enter image description here

1 Answers

UPDATE

As what Ruben has commented, the Google Apps Script is indeed usually behind the web apps as of the moment.

Upon diving into Google's Public Tracker, a Google engineer has stated recently that "At the moment this feature is only supported by the UI version." on a submitted Issue Tracker. This means that you can only add rich text formatting in Google Forms titles and descriptions on the https://docs.google.com/forms web interface.

With that being said, Google Feature Requests for Form API & Google Apps Script have already been internally submitted to address this limitation with rich text formatting.

You may visit these submitted Feature Request public links below:

To automatically get e-mail updates on these feature requests, you may "star" these public trackers:

enter image description here

Related