Configure Question Titles

Revision as of 22:52, 16 December 2024 by Admin (talk | contribs) (Created page with "You can specify the title property to set a question title. If you leave it unspecified, the question displays its name value as a title. However, question titles can have additional elements that you can configure, such as question numbers and required marks. * Question Numbers * Required Mark * Title Pattern == Question Numbers == Questions are numbered starting with 1. If you want to start numbering with a different number or use letters instead, specify the form's...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

You can specify the title property to set a question title. If you leave it unspecified, the question displays its name value as a title. However, question titles can have additional elements that you can configure, such as question numbers and required marks.

  • Question Numbers
  • Required Mark
  • Title Pattern

Question Numbers

Questions are numbered starting with 1. If you want to start numbering with a different number or use letters instead, specify the form's questionStartIndex property. You can include desired prefixes and postfixes in the property value:

const formJson = {

 // ...

 "questionStartIndex": "a.", // a., b., c., ...

 "questionStartIndex": "#3", // #3, #4, #5, ...

 "questionStartIndex": "(B)." // (B)., (C)., (D)., ...

}

forms use continuous numbering across all pages. If you want to start numbering on each page from scratch, set the form's showQuestionNumbers property to "onpage":

const formJson = {

 // ...

 "showQuestionNumbers": "onpage"

}

If you want to hide question numbers, set the same property to "off":

const formJson = {

 // ...

 "showQuestionNumbers": "off"

}

Required Mark

Questions that require an answer are marked with an asterisk *. You can use the form's requiredText property to set another symbol or specify an explanatory text string:

const formJson = {

 // ...

 "requiredText": "!"

}

Title Pattern

You can arrange the question title, number, and required mark in different sequences. To do this, specify one of the questionTitlePattern property values as shown in the following code:

const formJson = {

 // ...

 "questionTitlePattern": "numTitleRequire", // 1. Question Title *

 "questionTitlePattern": "numRequireTitle", // 1. * Question Title  

 "questionTitlePattern": "numTitle",        // 1. Question Title

}