Client Script

Phani Pasupulet
Tera Contributor

auto populate  the email of callers manager in incident form

2 REPLIES 2

Mohith Devatte
Tera Sage
Tera Sage

Hello @Phani Pasupulet ,

you can write an on change client script on caller field and using a Display BR on incident table to  store the email id of callers manager in scratch pad like below 

g_scratchpad.email = current.caller_id.manager.email;
 

Screenshot 2023-08-09 at 18.26.25.png

 

And in the client script you can access the value as below 

 

g_form.setValue('your_filed_name_to_autopopulate',

g_scratchpad.email);
 
Hope this helps 
mark my answer correct if this helps you 
Thanks 

Karthiga S
Kilo Sage

Hello @Phani Pasupulet ,

 

You can easily do this with dot-walking on incident form.

1. Open the incident form.

2. Configure form layout

KarthigaS_0-1691835952210.png

3.Click Caller and Expand the selected reference field.

KarthigaS_1-1691836011966.png

4. You will see all the caller related fields. Select manager and click on the expander again. Select email and move it to selected fields.

KarthigaS_3-1691836716283.png

 

KarthigaS_4-1691836831873.png

KarthigaS_5-1691836846986.png

5. Save the form.

 

Please mark it correct & Helpful if you find this useful!

 

Regards,

Karthiga