Hidden field not showing

dev_K
Tera Contributor

 

Hi All,

 

 

I am having a trouble showing a hidden field when condition is fulfilled:

 

 

 

dev_K_1-1724317256726.png

'Other Consumer' is set as hidden.

 

 

 

I created a Catalog UI Policy:

 

 

condition:

dev_K_2-1724317328546.png

 

action:

dev_K_3-1724317355671.png

 

 

 

when I select 'Other' the field is not showing:

dev_K_0-1724316912405.png

 

This seems not to work at all. Any tips on that?

 

Thanks!

 

9 REPLIES 9

Sandeep Rajput
Tera Patron
Tera Patron

@dev_K Your consumer variable is of type ListCollector which stores a sys_id and not the text. In your UI Policy, you can replace the condition

 

Consumer Contains Other with the following

 

Consumer Contains d6997a1fc3bfb910d90ffebc7a013156

 

Here the sys_id a dummy sys_id and it should be replaced with the sys_id of your Other choice.

Anand Kumar P
Giga Patron
Giga Patron

Hi @dev_K ,

 

Replace UI policy condition with 32 bit sys_id instead of string (Others) as consumer field type is list collector.

 

Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand

dev_K
Tera Contributor

Hi!

 

Sure, I get you but once I insert sys id in the field:

dev_K_0-1724318233732.png

 

and when I save it, it automatically changes value that correspond the gives sysID 😕

 

dev_K_1-1724318282571.png

 

Hi @dev_K ,

 

Try with is instead of contains .

 

Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand