2 Replies Latest reply on Mar 3, 2015 10:41 AM by Geckoz100

    Retrieve partial string from variable raw value

    Geckoz100 Level 1

      I have a Submit button script that pulls a phone number raw value from a field, and then places it in the generated e-mail, but it contains no dashes.  How do I go about retrieving the first 3 digits, then adding a dash, then next three, then adding a dash, etc.?

      Something like this:


      Phone1.rawValue(1-3) + "-" + Phone1.rawValue(4-6) + "-" + Phone1.rawValue(7-10)


      Thanks for the help.