You are viewing limited content. For full access, please sign in.

Question

Question

Grab last four of SSN field and set as default value for Employee ID field

asked on April 15, 2016

How can I achieve this?

 

I have a job app form and the company uses the last four of the SSN as their employee IDs.

I want to grab the SSN from the SSN field and set it as the default value in the employee ID field.

0 0

Answer

SELECTED ANSWER
replied on April 18, 2016

Then you should be able to use the regular expressions above to grab your data using a token activity in workflow before you fill in the PDF. Doing this check for the length of the SS Number also ensures that you have a valid (numerical wise) SS number. 

0 0

Replies

replied on April 17, 2016

Using the last four digits of SSN as an employee ID sounds like a recipe for a lot of headache sooner or later.

2 0
replied on April 18, 2016

Ege,

 

I couldn't agree with you more, but that's how this client has been doing it for years.

0 0
replied on April 15, 2016

If it were me I'd do this in a workflow after it's been submitted. You'd want to make sure that there is not already an ID using that number. That's not always going to be a unique number. 

 

I'd look at the SS number field and verify it's ^\d{3}-\d{2}-\d{4}$ to make sure it has the right number of digits and has nothing extra. Then once I know that's good I'd set a last4SS Token by by using (\d{4})$ 

 

Then I would use that token to search the repository for any employee that already has that number before you assign it!

1 0
replied on April 18, 2016

Hi Chris,

The form is an onboarding form for their HR department. Once they fill out the form and submit it, it takes the employee information and maps it to a PDF onboarding packet using workflow. (Consists of W4, I9, company policies etc.)

0 0
SELECTED ANSWER
replied on April 18, 2016

Then you should be able to use the regular expressions above to grab your data using a token activity in workflow before you fill in the PDF. Doing this check for the length of the SS Number also ensures that you have a valid (numerical wise) SS number. 

0 0
replied on April 18, 2016

Thanks Chris,

I'll give this a shot.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.