Label

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 }} .

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

{{ if Approved ='Y' then 'Yes' else 'No' }}

Sample 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.

<Label> <Content>{{Year)}}</Content> </Label>

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

displays 2024.

for more formatting options, please visit Data Templates .





Copyright © 2010 - 2023 Emakin. All rights reserved.