- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2018 10:41 PM
hi all,
seeing several threads on this topic, but wondering what the right solution would be.
I've got a variable on a catalog item that is only shown on a specific task. Want the variable to be mandatory if the user selects "Closed Complete" for the state.
Seems simple, but my script isn't working.
onChange client script? field I want mandatory is "approval_required". the script below is not working
anyone know the right way to achieve this? thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2018 11:15 PM
thanks Shishir, but I actually got it using a System UI Policy.
I was able to set the condition in the builder...and then script the setMantatory in the Script section. thanks for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2018 10:45 PM
Please try g_form.setMandatory("approval_required", true) // variables. is not required in client script. It is required when you try to access variables in Server side script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2018 10:45 PM
Looks like you haven't selected the variable name in dropdown.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2018 11:02 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2018 11:13 PM