Last four of SSN

Avatar

Avatar

christopherp183

Avatar

christopherp183

christopherp183

12-11-2018

I need a little help on populating just the last four digits of a SSN elsewhere within my form.  In the form there is one subform which is collecting demographic information.  About 20 subforms down, there is a field which needs to populate just the last four digits of the SSN field which is located on the demographic page.  Can anyone help me out?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372
_Bruce_Robertson
MVP

12-11-2018

You probably want a calculate script on your second field, something like;

xfa.resolveNode("SSN[0]").isNull

     ? ""

     : '***-**-'+xfa.resolveNode("SSN[0]").rawValue.substr(-4)

You will need to change the "xfa.resolveNode("SSN[0]")" bits to reference your fields.

Answers (0)