How to make the "Custom" variable type as Mandatory for Record Producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2023 04:13 AM - edited 06-13-2023 04:14 AM
Hi Everyone,
We have the requirement where to set the Custom Variable type as mandatory for the record producer. I have tried with Catalog UI policy, but its not working.
Can anybody please help me to solve the issue?
Thanks in Advance!!
Regards,
Kruthika

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2023 07:26 AM
Hi @Kruthika BM , can you share a screenshot or some information and I am sure we can figure it out 🙂
You can set Record Producer variables to be mandatory directly (in the field setup) or as you say, you can use a UI policy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2023 07:39 AM
Hi @Kruthika BM,
Are you using the variable in the portal or in the backend?
Or in other words, are you using a widget or a macro?
Since this is not a standard variable, I think you will have to create your own logic in the widget.
If you want to validate it before submission of the form, you are probably going to need a hidden variable, which can be filled by the widget/macro. Then in onSubmit Client script, you could validate if the widget/macro has been correctly filled.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.