Auto Populate Fields using Requested For

Blaze2
Kilo Guru

I have created the following Catalog Item and Form. The idea is for the Training group to fill this form out for new employees.

Currently the Employee Name field will auto populate all of the required fields.

Form.JPG

using the following Client Script:

client script.JPG

When I get to the Request and Requested Item, the name that is populated as the Requested for is mine. Request.JPG

So I went back to the form, and added the Requested By Variable Set which of course will not populate the needed fields.

Requested for.JPG

My question is to have one of the following occur:

1. Keep the Employee name field which will populate everything as it is now, but also have the name inserted there be the Requested for

2. Change the variable from Employee_name to Requested_for, have it populate all fields and show as the Requested for.

Either option is good for me.

Thanks for your help.

1 ACCEPTED SOLUTION

Blaze2
Kilo Guru

I figured it out.



I needed to change the field name from employee_name to requested_for.


find_real_file.png



Then in the Client Script I did the same




find_real_file.png



This would give me the functionality that I needed.
1. to Auto Populate the Fields I needed. find_real_file.png



As well as Bring forward the Employee Name as my Requested for in the Request. RITM and the SCTASKfind_real_file.png



Thanks everyone for your help


View solution in original post

16 REPLIES 16

Blaze2
Kilo Guru

I figured it out.



I needed to change the field name from employee_name to requested_for.


find_real_file.png



Then in the Client Script I did the same




find_real_file.png



This would give me the functionality that I needed.
1. to Auto Populate the Fields I needed. find_real_file.png



As well as Bring forward the Employee Name as my Requested for in the Request. RITM and the SCTASKfind_real_file.png



Thanks everyone for your help


SP22
Mega Sage
Mega Sage

I have the same requirement can you help how to solve this.