Can we use is one of UI POLICY condition with string
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2025 03:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2025 01:14 PM
Hi @MalikB ,
Yes, you can use “is one of” in a UI Policy condition but what is your business requirement here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2025 08:35 PM
Hi @MalikB
From the example of your screenshots---
vs_var_dotation_hidden and vs_var_dotation_futur_hidden are likely hidden variables.
They are being evaluated using the "is one of" condition, and the values being compared against ("typeDotation"...") appear to be string values or sys_ids of records that are treated as strings in this context.
it will works but there are some things you need to know ---
For straightforward show/hide, mandatory, or read-only requirements based on simple conditions (is one of, starts with, equal to, etc.), UI Policies are superior.
Drawbacks of UI Policy
- UI Policies do not have access to the newValue or oldValue of a field, which Client Scripts do
- If your hidden variable's value needs to be dynamically populated based on user input elsewhere on the form then better to use client script
- If you want better User Experience , use client script as well.
If you like this opinion and your problem is resolved after reviewing and applying it. Please kindly mark this your best answer🌠 OR mark it Helpful ⛑ if you think that you get some insight from this content relevant to your problem and help me to contribute more to this community
