Variable in a text field
Is it possible to add a variable in a text field (multiline) then, to resume this text in a field of formula and that the variables are replaced by data of other fields?
For example, my text field would contain the following information:
"Hello <name variable>, please enter the code <code variable> when connected to the site <site variable>"
In the formula field, <name variable> would be replaced by the text field named "First name", <code variable> would be replaced by the text field named "Practitioner code" and <site variable> would be replaced by the url field " Website"
Thanks for your help !
2 replies
-
It is possible using the replace() function.
let myvar := TextField(multiline);
myvar := replace(myvar,"<name variable>", 'First name');
myvar := replace(myvar,"<code variable>",text('Practitioner code'));
myvar := replace(myvar,"<site variable>",text(Website));
myvar
Content aside
- Status Answered
- 1 yr agoLast active
- 2Replies
- 91Views
-
2
Following