The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How do auto populate requested field on Project form

June Anderson
Tera Contributor

I am a sys admin and not familiar with the whole development/config in ServiceNow

 

I do, however, want to auto-populate a Requested by field on the Project form so that whenever I open up the project form it auto-populates with the logged-in user 

I would like for it to auto-populate with the logged-in user just like the change request form 

 

On the change form, when you open it to create a change request, it auto-populates the requested by the user.

I have tried looking at OOTB to see if I can see the configuration but I am not able to identify it 

Thank you 

 

I am sure if I am able to identify the code, I should be able to get it done. 

6 REPLIES 6

That was a good question. Please remove the script and revert the changes to old script by checking use dynamic default and save it .

For this autopopulation you can

write an onload client script

1) open thr form and right click on the banner

2)click on configure and then click on the client scripts

3) create a new one selecting the type

as onload and write below script

g_form.SetValue('your field backend name', g_user.UserID);

Please mark the answer correctly if it helped you

Palak Gupta
Tera Guru
Tera Guru

Hi @June Anderson ,

You can update field default value as per below image

find_real_file.png

Please mark my answer correct and helpful if this resolves your issue.
Regards,
Palak