Auto-populate a field based based on another field

DeIvory Gordon
Tera Guru

Hello,

 

I am creating a catalog item and I added a variable/field named "Name of user receiving phone which references the sys_user table.   I created a second variable/field named "New user’s manager" which should auto-populate based on ‘Name of user receiving phone’ field.  I am unsure how to do this.  It may be a UI Policy, but I need a little help setting it up.  Thanks!                 

DeIvoryGordon_0-1786475389151.png

 

1 REPLY 1

DrewW
Mega Sage

You are going to have to use an onChange client script attached to the "Name of user receiving phone" to do this.  In that script you will have to query the server for the user record and have it return the manager and set the other field to that.  Then just make the other question read only so the user cannot change it.