when we select operation variable choice value is 'new', code material should not be mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 12:31 AM
Hi Community,
when we select operation variable choice value is 'new', code material should not be mandatory
Could you please suggest how can we achieve this
Thanks & Regards,
Srinivasu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 03:10 AM
Hi @Srinivasu2,
Please try to use the UI Policy for this.
Add the condition -
Data Master is material and operation is new.
Add UI Policy Action.
Code Material - mandatory (false), visible true or leave alone
Also, you can write client script pn change of operation :
If (newValue == "New")
{
g_form.setMandatory ("<code_field_name>", false);
}
Hope this helps
Regards,
Shamma
Mark this as correct and helpful if this resolves your issue.
Thanks
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 06:08 AM
It's works fine in catalog form, but it doesn't work in RITM even though i checked "Applies on Requested Items"
please check below screenshots and advise
Thanks & Regards
Srinivasu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 06:08 AM
Hi @Srinivasu2,
You can use the UI Policy for this. (Please ensure to check the reverse if false field)
- Add the condition -
Operation is new - Add UI Policy action
Code Material - mandatory (false)
If you already have this UI policy configured and facing an issue. Review if the "Code Material" variable is made mandatory on the variable if it is made mandatory, ensure to uncheck it and then test it. That will allow the UI policy to work as expected.
Please note that whenever you have set a variable as mandatory on the variable level, the UI policy mandatory configuration may not work as intended.
Please mark this as correct and helpful if this resolves your issue.
Best Regards,
Shubha