Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 08:17 AM - edited 12-19-2023 08:03 PM
Hello @vinod6,
Instead Glide Ajax and script include(BIG code), you can explicitly use client script(little code) to achieve this.
Write OnChang Client script on requested for variable.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var userid = g_form.getRefRecord('requested_for', userRef);
function userRef(userid){
g_form.setValue('manager', userid.manager.toString());
g_form.setValue('country', userid.location.country.toString());
}
}
Hope this finds your easy solution.
Please appreciate the efforts of community contributors by marking appropriate response as correct answer✔️ and helpful👍, this may help other community users to follow correct solution in future.
Happy to help you in future😎.
Thank you,
Rajesh