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

Abhinay Erra
Giga Sage

Blaze,



  I did not get your question, You are trying to change the variable name from "Employer name" to "Requested for". Now you want rest of the variables to be auto populated, is that correct?



Thanks,


Abhinay


Thanks for your reply Abhinay



I want one of the options.



Either keep the Employee Name field and have it function as it is now, except that it also popultes the Requested for field in the Request, Requested ITem and Tasks



OR



Change the Employee Name field to the Requested_for Variable Set, and have it do the same as in Filling out the varibales and populating the Requested for Field in the Req, RITM and Task. result



Currently each option is doing the opposite


Blaze,



  One quick way of doing this is, keep your "Employer name" variable as is and go to service catalog properties and set the property 'Use the two step catalog checkout model' to true. This will give you the "Requested for" field during the checkout of a catalog item and you can select the user you want in this reference field. This "Requested for" will reflect on the Request and Requested item as well.


prop.PNG




Thanks,


Abhinay



PS: Hit like, Helpful or Correct depending on the impact of the response


This is helpful, but the problem is the Employee Name would be filled out, and then the Requested for would have to be changed on the next screen.



It makes the flow of the process redundant.