Using the 'is ANYTHING' condition in UI Policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2013 12:56 AM
I am building a Record Producer that would show a sequence of similar input fields one by one as the user fill them in. This is like filling a table: a new empty row appears after the previous row is not empty any more. To achieve this effect I am creating a Service Catalog UI Policy that goes like 'if field1 is anything or field2 is anything, then keep field2 visible'.
The challenge I am facing is likely a bug with the 'ANYTHING' condition. I am looking for a workaround.
As soon as I save the UI Policy, the conditions are displayed in a weird manner, not as they were when I created them (see the screenshots 'conditions-entered.png' and 'conditions-after-save.png').
When I try this Record Producer, firstly - it does not work (both fields are always visible), and secondly - in the script log statements there are messages like this: "CatalogUIPolicyBuilder: Cannot get question for 'd3a9b9e23cb2f000cc34fe4d3fc16055ANYTH'. Skipping term"
This looks like a bug in ServiceNow. My question is how to work it around. Please, any suggestions are welcomed.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2013 04:27 AM
Yes, I also tried and 'anything' condition is not working .. But my question is if field 2 is already visible then how can we make it visible again...
So the workaround(create new catalog ui policy) you can try like :
'if field 1 is not empty then only visible field 2'
I hope it solves your problem...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2013 07:34 AM
"is anything" will always be true. It is not the same thing as saying "is something" or "is not empty". Neetu is right, "is not empty" will likely give you better results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-13-2013 10:11 PM
Hey, thanks for the suggestions! Indeed, changing 'is anything' to 'is not empty' did the job.