In Service catalog check box field mandtory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 08:02 PM
Hi Team ,
Can anyone please help me here ,
when ever ' Does the request incliude ....... ' is selected Yes . Then ' Select the data domain and check box has to be visible . how to acheive this .
I have written a UI policy which is not working as per my requirement
I haven't selected Yes , but label and checkbox are showing .
can anyone please help me here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 09:40 PM
Hi @nameisnani ,
Try with the below Onchange client script: Adjust the variable names accordingly.
(function executeRule(current, previous /*null when async*/) {
// Check if the selected value is "Yes"
if (g_form.getValue('does_the_request_include') === 'Yes') {
g_form.setDisplay('select_data_domain', true); // Show "Select the data domain"
} else {
g_form.setDisplay('select_data_domain', false); // Hide "Select the data domain"
}
})(current, previous);
Thanks,
Pradeep
Regards,
Pradeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 09:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 11:21 PM
Hi @nameisnani
This scenario should ideally be managed with a simple UI Policy. I ran a quick test, and it seems the UI Policy can control checkbox visibility as expected.
So, it would be best to identify the underlying conflict that's preventing the checkboxes from hiding when "None" is selected, rather than adding additional scripts to work around the issue.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 10:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 10:09 PM
Hi @nameisnani
You have to add those 3 checkboxes in that UI Policies action then it will work.
Regards,
Akash Mane
Please mark my answer as correct and helpful if it works for you.