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

then can you try this 

@asmita sahu 

javascript:current.caller_id.getValue('location');

Default value only works when the form value is empty, it doesn't populate in real time, it only does, when the form is saved.

Best Regards
Aman Kumar

true ! Just noticed the above replies 

then i think @asmita sahu you need to do this via client scirpt as @Aman Kumar said as it is based on selection of caller id

Musab Rasheed
Tera Sage

Hello,

No need to use Location field, from form layout you can bring Location field by doing dot walking of 'Caller' field, it's simple and effective solution.

find_real_file.png

find_real_file.png

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Community Alums
Not applicable

will this be applicable for all users?