- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 03:36 PM - edited 01-03-2025 03:37 PM
Hello Community,
I have a process owner who wants to disable the order/request/submit button if the requestor selects "no" on a specific variable.
I added a video explanation for reference: https://youtu.be/65iwLAJr8as.
I'm new to scripting, so I would appreciate a complete answer with context 🙂.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 09:25 PM
if you want to show/hide the order/request button based on variable then you need to use onChange catalog client script and use DOM manipulation to achieve which is not recommended.
If you still wish to do then check the answer in below link and enhance it as per your requirement
Show/hide the submit button on catalog item form based on select box
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 06:07 PM
Hello @Xavier_Wharton
This can useful to you: How to disable the submit button in the catalog form if the variable choice option is Disagree
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"
Thank You
Juhi Poddar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 09:25 PM
if you want to show/hide the order/request button based on variable then you need to use onChange catalog client script and use DOM manipulation to achieve which is not recommended.
If you still wish to do then check the answer in below link and enhance it as per your requirement
Show/hide the submit button on catalog item form based on select box
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2025 08:03 AM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2025 08:24 AM
Thank you @Ankur Bawiskar. You mentioned that DOM manipulation is not recommended. Can you explain why? Additionally I reviewed the link that you shared in your first response, but wasn't clear on what to do.