Jump to content

CPCaspio

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

CPCaspio's Achievements

  1. @Ulensr, You can disregard my ask above. Much easier to solve using a formula field on the backend.
  2. @Ulensr, I mistakenly replaced your placeholder with the wrong value. It should have been "EditRecordrp_phone", but it's working now so thanks! What I really want to do is use the value from a US national phone number field (rp_phone) displayed & stored as (###) ###-#### to populate a separate E.164 phone number field (rp_e164_phone) formatted & stored as +11234567890. This field will be hidden on the datapage and only used for an integration to send SMS. I realize using an extra field just for different formatting isn't ideal, but it's a quick & dirty solution for now. Thanks again!
  3. @Ulensr, I wasn't able to get this to work, but I'm chalking that up to my inexperience with JS. However, I learned enough from it to kludge it together with another script I'm using to make it work. Thx
  4. @kpcollier, thanks for your suggestion. I'd prefer not to break the phone number up into parts because it's lot easier to enter 10 digits in a single field without having to tab/enter/move from field to field. But, I'll keep this in my back pocket if I can't find a JavaScript solution. Thanks!
  5. Thanks to the Format Phone Number in DataPages how-to article, I've formatted all of my phone numbers to use the US national format of (###) ###-####. This is great for readability; however, I have a downstream integration that requires the E.164 international standard format of +[country_code][subscriber_line]. For example, (123) 456-7890 would become +11234567890. So, I essentially need to strip out all non-numeric characters (including white spaces) and prepend "+1". All of my phone numbers are in the US. This may sound easy, but I'm a citizen developer new to JavaScript so any help would be greatly appreciated. Thanks!
×
×
  • Create New...