- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 01:36 AM
If serviceline(selectbox type) is 'D/C HQ Deposit, set field Catalog item(reference type) as - HQ Deposit Management
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 02:18 AM - edited 07-23-2024 02:21 AM
Hello @Gaurav69 ,
You can easily achieve this requirement by creating an on change client script on serviceline field as below -
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
//Type appropriate comment here, and begin script below
if(newValue == 'D/C HQ Deposit'){
g_from.setValue('Catalog item','sys_id_of_HQ Deposit Management'); //pass sys_id of catalog item
}
}
Please make sure you are using correct field names while configuring the client script.
If my answer solves your issue, please mark it as Accepted ✔️and Helpful 👍!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 02:18 AM - edited 07-23-2024 02:21 AM
Hello @Gaurav69 ,
You can easily achieve this requirement by creating an on change client script on serviceline field as below -
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
//Type appropriate comment here, and begin script below
if(newValue == 'D/C HQ Deposit'){
g_from.setValue('Catalog item','sys_id_of_HQ Deposit Management'); //pass sys_id of catalog item
}
}
Please make sure you are using correct field names while configuring the client script.
If my answer solves your issue, please mark it as Accepted ✔️and Helpful 👍!
