0

Display first two characters

I am trying to create a formula that will only display the first two left characters from a text box. How do I create this?

3 replies

null
    • Sean
    • 5 yrs ago
    • Reported - view

    I assume you want to retain the complete text, but only display the first two left characters. In that case I would create a field that stores the complete text, but is hidden. I used this code in "Trigger after update"...

     

    let txtMyText := Text1;
    Text2 := txtMyText;
    Text1 := substr(txtMyText, 0, 2)

    • SMoore
    • 5 yrs ago
    • Reported - view

    Perfect thank you!

    What I was doing was embedding it into a Printed Form and I just used substr!!

    • Sean
    • 5 yrs ago
    • Reported - view

    That's what happens when one assumes things!  :-D

Content aside

  • 5 yrs agoLast active
  • 3Replies
  • 1956Views