Forum Discussion
QuickBaseCoachD
7 years agoQrew Captain
Becky,
Try this
// desired format is ###-##-####
var text PartOne = Left([SSN],3);
var text PartTwo = Mid([SSN,4,2);
var text PartThree = Right([SSN],4);
IF(Length([SSN]=9,
List("-", $PartOne, $PartTwo, $PartThree))
Try this
// desired format is ###-##-####
var text PartOne = Left([SSN],3);
var text PartTwo = Mid([SSN,4,2);
var text PartThree = Right([SSN],4);
IF(Length([SSN]=9,
List("-", $PartOne, $PartTwo, $PartThree))
- RobbinMarshall7 years agoQrew MemberI tried this and received an error on the "If(Length" line. The error states "The operator '=' can't be applied on types text, number"
My SSN field was a numeric field, but I had to change it to text to fix the errors in the first 3 lines that begin with "var" - RobbinMarshall7 years agoQrew MemberI found out the issue. I was missing the ")" behind [SSN].