Hello,
I could use some help with a script. The script will need to do a couple of things.
1. Remove all special characters and spaces from %mobile% string, leaving a 10 digit phone number like 1234567890, and then add a 1 to the front for the US country code. I already have a regexp used as part of a property pattern that allows only the 10 digit phone number but allows for separators like parentheses, dashes, etc. The updated phone number with country code should be saved into %mobile%.
2. If custom text attrib #3 says no, the value provided in %mobile% should be moved to %otherMobile%, and then %mobile% should be cleared.
3. If custom text attrib #3 says yes, copy the %mobile% value into %othermobile%, but the %mobile% number stays where it is.
P.S. I know I could use a boolean attribute for the publish number field, but I've used up all the available boolean attributes and had lots of text attributes available, so I just used a property pattern to give a yes or no value option.
Thank You!
Ryan