rtSurvey render label និង hint text ជា HTML ។ នេះ មាន ន័យ ថា អ្នក អាច ប ្ រ ើ HTML tags ។


HTML tags ដែល គាំទ្រ

Text formatting

TagResult
<strong>text</strong><b>text</b>Bold text
<em>text</em><i>text</i>Italic text
<u>text</u>Underlined text
<br>Line break
<span style="...">text</span>Inline styling
  <a href="https://example.com" target="_blank">Click here</a>
  

Colors

  <span style="color: red;">Warning: value is out of range</span>
<span style="color: #009688;">Section completed</span>
  

Multi-language labels

  <en>Enter the household size</en><vi>Nhập quy mô hộ gia đình</vi>
  

Examples

Section instruction

typenamelabel
notesection_intro<strong>Section 3: Land Use</strong><br>Ask all questions in this section to the household head only.

Warning ជ ា red

typenamelabelrelevant
noteage_warning<span style="color: red;"><strong>Warning:</strong> Age entered (${age}) is unusually high.</span>${age} > 100

Special rtSurvey HTML Tags

<webbox src='url' title='title'>...</webbox>

Embed button ដ ែ ល បើ ក URL ក ្ ន ុ ង modal ។

<delete-repeat-current>label</delete-repeat-current>

Render button ក ្ ន ុ ង repeat group ដ ែ ល delete current instance ។


Best Practices

  1. ប ្ រ ើ HTML ដ ោ យ ក ំ ណ ត ់ ។
  2. ប ្ រ ើ <strong> bold ហ ើ យ <em> italic ។
  3. Test HTML rendering ទ ា ំ ង ន ៅ mobile app ហ ើ យ web form ។

Limitations

  • Complex HTML ម ិ ន ត ្ រ ូ វ ប ា ន គ ា ំ ទ ្ រ ។
  • <a> links បើ ក ក ្ ន ុ ង browser ។
តើទំព័រនេះមានប្រយោជន៍ទេ?