Catalog UI Policy with greater than or is operator is not working as expected

Raviteja Kunal1
Tera Expert

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

RavitejaKunal1_0-1671172606054.png

 

But UI Policy Action is triggering for any input not considering greater than operator. Any reference how to fix it.

TIA

1 ACCEPTED SOLUTION

reshmapatil
Tera Guru

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:

reshmapatil_0-1671308327792.png

 

 

Regards,

Reshma

**Please mark my answer correct or helpful based on the impact**

View solution in original post

4 REPLIES 4

mdash
Giga Guru

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.


Deepika18
Tera Guru

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

reshmapatil
Tera Guru

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:

reshmapatil_0-1671308327792.png

 

 

Regards,

Reshma

**Please mark my answer correct or helpful based on the impact**

I am using Numeric type.