
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 08:42 PM
I have a field which is referenced to "sys_user" table . If i select a value from user table then value of some other fields populate automatically . Below are the fields
Do i need to Business rule or client script to archive this ? How
Solved! Go to Solution.
- 46,546 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 10:02 PM
Hi Dinesh,
Please try with script below.
function onChange(control, oldValue, newValue, isLoading) {
var caller = g_form.getReference('caller_id', doAlert); // doAlert is our callback function
}
function doAlert(caller) { //reference is passed into callback as first arguments
g_form.setValue('email',caller.email);
g_form.setValue('phone',caller.mobile_phone);
g_form.setValue('phone',caller.location);
}
Please change the variable name that you have exactly on your catalog form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2023 03:50 AM
Above script is working.. Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 10:37 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2017 06:28 AM
Hi Harshvardhan , Thanks mate , its working . Cheers Regards, Dinesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2022 12:16 PM
Hi Harsh,
When I try this, i just get the sys ID 3beaa790dbf9649045c73ce3399619c5 instead of the value 😞
what am I missing?
my problem statement is -
update mailbox owner (we have 4 different mailboxes )
(Based on a choice for these mailboxes, i display the selected mailbox)
The user should be allowed to select any active mailbox from any mailbox collection.
The previous user should be should on the screen when a mailbox is selected ("Current Owner" field, protected).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2022 06:42 PM
I think i found the answer by changing the variable type to reference from single text and mapping it with the table you want the value of. In my case it was user table.