Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Label control is the simplest way of displaying a text on the form. When entered plain text it is displayed without any operation. If you want to perform mathematical operations or get value(s) from the XML, you must use double braces around the statement, for example {{ LeaveInformation/RemainingDays + 1 }} or {{ Personnel/Age }} .Image Removed

...

Displaying Alternative Texts

Sometimes, it is a requirement to display additional text on the form related with the Form Data. Below, you may see an example on how to accomplish this.

Let's say that , you have an Xml field named Approved.

Sample Code

Code Block
title
languagejsSample Code
{{ if Approved ='Y' then 'Yes' else 'No' }}

Sample Code with IIF

Code Block
languagejs
titleSample Code with IIF
{{iif(Approved='Y','Approved',iif(Approved='N','Not Approved','Not Specified'))}}

Formatting

You can also format the numbers to be seen as texts like the following.

Code Block
languagehtml
<Label>
    <Content>{{Year)}}</Content>
</Label>

displays 2,024 (assuming that year is defined as Number)

Code Block
languagehtml
<Label>
    <Content>{{format(Year, 'string')}}</Content>
</Label>

displays 2024.

for more formatting options, please visit Data Templates .