I have a Incident form if i select Caller field in Incident form then all the Fields like mobile number, location, name, Email Should be auto populate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2020 04:10 AM
Hi,
I have a Incident form if i select Caller field in Incident form then all the Fields like mobile number, location, name, Email Should be auto populate.
Can any one help me out for the same.
Awaiting for your response,
Regards,
Sreenadh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2020 04:24 AM
Hi Kranthi,
For that purpose we need to use script include and Then you can write an On Load Catalog Client Script
go through this link
Kindly mark it correct and helpful.
Thanks and regards,
Priyanka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2020 04:25 AM
Hi,
You can try dot walking in the form layout option.
One example of department is shown below. Refer below screen shot.
Or other option is to write onChange() client script. Refer below code.
function onChange(control, oldValue, newValue, isLoading)
{
if (newValue == '')
{
g_form.setValue('caller_id', '');
}
var callr = g_form.getReference('caller_id', setManager);
function setManager(callr)
{
if (callr)
{
g_form.setValue('manager', callr.manager);
g_form.setValue('email', callr.email);
//same for other fields
}
}
}
Let me know if it is useful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2020 04:37 AM
Hi,
Client Script details:
Type: onChange
Table: Incident
Field Name: Caller
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue == '') {
return;
}
var caller = g_form.getReference('caller_id');
g_form.setValue('department',caller.department);
g_form.setValue('location',caller.location);
g_form.setValue('email',caller.email);
g_form.setValue('name',caller.name);
g_form.setValue('Mobile phone',caller.mobile_phone);
}
Kindly mark the answer Correct and Helpful if this answers your question.
Thanks,
Ali.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2020 04:49 AM