is there any way to make a custom variable in record producer as a mandatory field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi,
I have a custom variable that called a widget in my record producer. i tried make it as a mandatory field using client script but it didnt work. Is there any way to make it as a mandatory field without onSubmit client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
you can't make custom variable (containing widget) mandatory using UI policy or client script
Why not have mandatory check within that widget itself in HTML part?
If you are asking something to input in the Widget HTML you can make it mandatory
OR
Create a hidden text variable on your catalog form, write the value from the widget to that variable, so you can use an onSubmit client script to validate if it's filled
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader