0

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

null
    • Ninox partner
    • RoSoft_Steven.1
    • 11 mths ago
    • Reported - view

    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

      • Créateur de bien-être
      • Sebastien_Guillet
      • 11 mths ago
      • Reported - view

      RoSoft_Steven THANKS ! It works perfectly

Content aside

  • Status Answered
  • 11 mths agoLast active
  • 2Replies
  • 75Views
  • 2 Following