Ui policy or something else?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2024 12:40 AM
I need to check if a field has no value available to choose from. If the field has no value, another fields needs to be mandatory. Can I do this in ui policy? How?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2024 02:11 AM
Hi @B_pppppp ,
You need to locate the script that gives specific users no option to chose at the desired field. Afterwards look at the condition why there is no option to chose etc.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2024 12:55 AM
Give more information about the requirement.
Explain the problem you are facing in detail, so that we (Community) can help you..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2024 01:58 AM
Hi @B_pppppp
I don't think it is possible with UI Policy, but I would suggest a workaround with onLoad Client Script. Refer below sample code:
function onLoad() {
var fieldObj = g_form.getControl("field_name"); // get field element
if (fieldObj.options.length != 1) {
g_form.setMandatory("mandatory_field_name", true); // for making field manadatory
}
}
Hope this help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2024 06:44 AM
thank you but it's not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2024 02:24 AM
Correct my understanding , " if the one of the field value is Empty then u need to make the other field mandatory !".
if it is the above case then u can use UI policy for the requirement.