Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

is there any way to make a custom variable in record producer as a mandatory field?

Alon Grod
Tera Expert

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?

1 REPLY 1

Ankur Bawiskar
Tera Patron

@Alon Grod 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader