Smart Fields
Smart fields use a special tag that starts with "$". They cannot be provided by a user in the form. Those fields are build or calculated based on existing nonsmart regular fields.
Last updated
Assuming:
field1: "2",
field2: "5"
field3: 2,
field4: 5
{$ field1 + field2 } ==> 25
{$ field3 + field4 } ==> 7
{$ +field1 + +field2 } ==> 7
// Converts "2" into Number 2 and "5" into 5{$ [CONDITION] ? [TEXTIFTRUE] : [TEXTIFFALSE]}{$ FIELDNAME == 'VALUETOCOMPARE' ? 'textIfTrue' : 'textIfFalse'}
{$ FIELDNAME != 'VALUETOCOMPARE' ? 'textIfTrue' : 'textIfFalse'}
{$ FIELDNAME > NUMBERTOCOMPARE ? 'textIfTrue' : 'textIfFalse'}
{$ FIELDNAME < NUMBERTOCOMPARE ? 'textIfTrue' : 'textIfFalse'}== (Equal),
!= (Not Equal),
> (More Than)
< (Less Than)
&& (And)
|| (OR)Name: {name}
Surname: {surname}
Sex: {sex}
Full Name: {$ sex == 'woman' ? 'Mrs.' : 'Mr.'} {name} {surname}Name: {name}
Age: {age}
Status: {$ age > 18 ? 'Adult' : 'Underage'}'full', 'long', 'medium', 'short'Examples for time:
{$currentTime} ---> 6:57:14 PM
{$currentTime | time:'en-US'} ---> 6:57:14 PM
{$currentTime | time:'de-DE'} ---> 18:57:14
{$currentTime | time:'de-DE:'Europe/Berlin'} ---> 20:57:14
{$currentTime | time:'de-DE:'America/Chicago'} ---> 13:57:14
{$currentTime | time:'de-DE:'America/New_York'} ---> 14:57:14
{$currentTime | time:'en-US:'America/Chicago'} ---> 1:57:14 PM
{$currentTime | time:'en-US:'America/New_York'} ---> 2:57:14 PM
Examples for date:
{$currentDate} ---> 4/28/2023
{$currentDate | date:'en-US'} ---> 4/28/2023
{$currentDate | date:'de-DE'} ---> 28.4.2023
{$currentDate | date:'de-DE':'Europe/Berlin'} ---> 28.4.2023
{$currentDate | date:'de-DE':'Pacific/Pago_Pago'} ---> 27.4.2023 (Timezone can affect date)
{$currentDate | date:'de-DE':'Pacific/Kiritimati'} ---> 29.4.2023 (Timezone can affect date)
{$currentDate | date:'en-US':'UTC'} ---> 5/8/2025
{$currentDate | date:'en-US':'UTC':'short'} ---> 5/8/25
{$currentDate | date:'en-US':'UTC':'medium'} ---> May 8, 2025
{$currentDate | date:'en-US':'UTC':'long'} ---> May 8, 2025
{$currentDate | date:'en-US':'UTC':'full'} ---> Thursday, May 8, 2025
{$currentDate | date:'de-DE':'UTC'} ---> 8.5.2025
{$currentDate | date:'de-DE':'UTC':'short'} ---> 08.05.25
{$currentDate | date:'de-DE':'UTC':'medium'} ---> 08.05.2025
{$currentDate | date:'de-DE':'UTC':'long'} ---> 8. Mai 2025
{$currentDate | date:'de-DE':'UTC':'full'} ---> Donnerstag, 8. Mai 2025
// Use addDays on currentDate
{$currentDate | addDays:3 | date:'en-US'} ---> Adds 3 days to currentDate and use'en-US' format
{$currentDate | addDays:7 | date:'de-DE'} ---> Adds 7 days to currentDate and use'de-DE' format