Populating caller location using default value

Community Alums
Not applicable

Hi All,

I want to populate the incident caller's location on location field using the default value.
I tried with javascript:gs.getcaller_id().getRecord().getDisplayValue("location");  but it is not working.
Can you please help how can I achieve this ?

Note: Location field created on task table.

27 REPLIES 27

SumanthDosapati
Mega Sage
Mega Sage

Hi @asmita sahu 

You cannot get it with default value.

Default value is not dynamic to populate values based on other field.

You only have two options :

1) To write an onChange client script on caller field

2) To add a reference qualifier for location field to show only the caller's location. (It will not populate the value. Just will filter out other locations in the reference field).

 

Mark as correct and helpful if it solved your query.

Regards,
Sumanth

@asmita sahu 

Feel free to reach out if you have further questions or else you can mark an answer as correct and helpful to close the thread so that it benefits future visitors also.

Regards,
Sumanth

Shoaib_latam
Tera Contributor

Create a Before Insert Business Rule on Incident Table 
Under Actions tab Set field Value Location ,  same as , Caller.location

 

Shoaib_latam_0-1692213931051.png