- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2022 10:38 PM
I am working on Catalog UI Policy, one field should be visible based on the number, If value is greater than 50000. Below is the screenshot
But UI Policy Action is triggering for any input not considering greater than operator. Any reference how to fix it.
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2022 12:19 PM
Hi @Raviteja Kunal1 ,
Which type of variable are you using?
I tried for single-line text variables with 'less than or is' and 'greater than or is' operations and it's not working.
Then I changed to numeric type and it's working as aspected.
Better to use OnChange Client Script even for single line text variable:
Regards,
Reshma
**Please mark my answer correct or helpful based on the impact**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 01:02 AM
Seems like a bug to me. I tried the same in my PDI. The 'is' operator works, but 'greater than or is' does not.
Please feel free to contact ServiceNow platform support for this. As workaround, you can use script (UI Policy script or client script) to achieve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2022 06:00 AM
Hi,
I tried the same in my PDI, it is working fine for me. Please check if you have provided the right fields in UI policy action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2022 12:19 PM
Hi @Raviteja Kunal1 ,
Which type of variable are you using?
I tried for single-line text variables with 'less than or is' and 'greater than or is' operations and it's not working.
Then I changed to numeric type and it's working as aspected.
Better to use OnChange Client Script even for single line text variable:
Regards,
Reshma
**Please mark my answer correct or helpful based on the impact**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2022 09:06 PM
I am using Numeric type.