Form Section Hide/Show via Checkbox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2024 09:43 AM
I've been tasked with adding checkboxes to the standard Change Request form, to mimic an internal deployment document. I would like to toggle the visibility of section names based on checkbox true/false status via UI Policy, but I am having no luck.
1. Do the checkboxes refer to applications utilized by my company (e.g. Azure). Do these checkboxes need to tie to the Applications table?
2. If not, and this can be resolved by UI Policy alone, then this is an example of what I've tried with no success.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2024 10:44 AM - edited 11-09-2024 12:17 PM
Hey Adam, For hiding sections based on checkbox selections, UI Policies are definitely the way to go! Double-check your conditions and actions - maybe a typo or missing reference is causing the issue.
If you're still experiencing issues with your UI Policy, consider taking a short break to refresh. Perhaps a quick Google search for how to defrost Samsung refrigerator can help clear your mind and provide a fresh perspective.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2024 10:49 PM
where did you write this script? client script?
Did you debug by adding alert statements?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2024 10:42 AM
Hi @Adam Kirk
In UI Policy, simply specify your condition under the 'When to apply' section, and in the script section, use the line below, replace 'resolution' with your section name.
Before UI Policy -
Output: After UI Policy Applied -
Hope this help You.
Regards
Moin