Service field is not getting blank if service offering is made blank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello All,
We have made the service field as read-only and once we select any service offering its setting the service coming from service offering table which is parent on service offering what we have selected and setting the service offering.
We had a requirement to set the assignment group if we select any service offering then itis having a logic to find the assignment group if no records then it will pass the service offering support group and will set the assignment group .
Now when i did set the assignment group i did find one out of client script is again clearing out the service offering then i deactivated the oob script which is clearing the service offering.
on change client script name- Clear Offering on changing Service
Now while testing this i encountered one issue the issue is
if i have selected a service offering called x and its's parent y got selected as service on the form on service filed if i remove the x then it only shows service offerings which are service offerings of x only it is not getting cleared.
I mean to say when i clear the service offering its not clearing the service as we have just cleared the value and not changed the value no script is getting trigger nor ui policy to clear the service field.
also i found reference qualifier on service offering i cleared the reference qualifier on service offering field as well but no luck.
I wonder how we will tackle this kind of situation. If we are not changing any value just clearing the value how the dependent fields or parent fields we can clear ?
@Ankur Bawiskar any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @Debasis Pati
simply create an onchange client script:
field - service offering
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading) {
return;
}
// 1. Check if the Service Offering was just cleared (is empty)
if (newValue === '') {
// 2. Clear the Service field so the filter resets
// Note: Ensure 'business_service' is the correct backend name for your Service field
g_form.clearValue('business_service');
}
}
Note--
1. Reference Qualifiers only control what options appear in the list when you click the magnifying glass.
2. They do not control the data value currently sitting in the field, even if you remove the reference qualifier, if the Service field has a value (e.g., "Email"), the system's default dependency behavior will still try to filter the offerings. By using the script above to clear Service, you remove the filter constraint, allowing all offerings to be selectable again.
Happy to help!
To help others in the community find this solution, kindly mark this response as the Correct Answer and Helpful.
Warm Regards,
Deepak Sharma
Community Rising Star 2025

