incident management

FaisalH
Giga Contributor

Caller reference field should be auto populated with the logged in user name.

4 REPLIES 4

PratikshaKate
Kilo Guru

@FaisalH configure the field's dictionary entry. Specifically, set the "Default value" to javascript: gs.getUserID() and "Read only" to true

 

Mark my answer helpful if it helped you 🙂

Dr Atul - LNG
Tera Patron

Ho @FaisalH 

 

You want on Portal or native view?

Omkar Kumbhar
Mega Sage

Hello @FaisalH ,

Write a onload client script 

  • Name: Auto-populate Caller
  • Table: (e.g., incident)
  • Type: onLoad
  • Script:

(function executeRule(current, gForm, gUser, gSNC) {
if (gForm.isNewRecord()) {
gForm.setValue('caller_id', gUser.getID());
}
})(current, gForm, gUser, gSNC);