0

Parse Multi-line box

Hello again,

I would like to paste a static chunk of text into a multi-line box and, on Trigger, have it take a substring from the first line and place it in my customer name field, then take the second line and have it place the phone number, third line, etc.

I see information in the manual about the substring and I think I can manage this, however is it possible for me to choose a particular line from the multiline box to do something to?

Cheers!

Rick

1 reply

null
    • Support
    • 5 yrs ago
    • Reported - view

    You can use the function

    –––
    split(string, separator)
    –––

    to get the content of the mulitline field into an array.

    –––
    let myContent := split('multi-line box', "
    ")
    –––

    Then you can use

    –––
    item(array, index)
    –––
    wo get the seperate entries.

    So item(myContent, 0) would be the cusotmer name.

    Birger

Content aside

  • 5 yrs agoLast active
  • 1Replies
  • 1513Views