Question T6481
Visible to All Users

Survey Question title

created 4 years ago

How can I edit the question title to show a new line?
In the question settings, a new line can be added but when I click ok to confirm changes, the question title will appear on the same line.
is there any way to show questions on more than one line?
Thank You.

Answers approved by surveyjs Support

created 4 years ago

Hello,
Unfortunately, there is no an easy solution here. You can't but "\n" here, html will ignored it and you can't use <br/> tag by default, because we will render it as a text. Otherwise we will introduce a security issue.
You have to use survey.onTextMarkdown event. Here is the example.

Thank you,
Andrew
SurveyJS Team

    Comments (2)
    BE BE
    Bassel Elwakil 4 years ago

      Hello,
      Thank you for your help, I have a small follow up question, is there a way to make the question title read only and disable the edit from inside the builder not the settings?

      Thank You.

        Hello,

        I created a separate ticket on your behalf: (T6496: How to disable editing titles on Survey Creator designer surface). We placed it in our processing queue and will process it shortly.