ITSM Ui Policy hide filed based on onload

sushma9
Tera Contributor

Hi All,

 I have two fields  1. required , 2. include . with scripting i am assigning the data inside the those two fields  based on conditions . if condition 1 matches then field "required "  will  be auto populate some date  with script . if condition 2 matches then  "include"  filed will auto populate some date  .

 

I have written a Ui policy and if filed one(required )is empty then show the filed two and hide the filed one. if the field two (include ) is empty  then filed two will be hide and field one will be visible .

I have tried but not  working . Can any provide me the solution to the issue.

 

Thanks in Advance .

 

 

 

12 REPLIES 12

sushma9
Tera Contributor

@AshishKM 

Please find the Ui Policy .

sushma9_0-1702318720473.png

 

gkishen84
Tera Contributor

Hi Sushma,

By default set the fields visibility to false.

write 2 ui policy with filter as

If Next IS NOT EMPTY then on policy UI Action set the required value to be visible. under the advanced view set "Reverse it false" as checked.

similarly write it for Nest fields.

 

2 ui policy & 2 UI policy action.

Regards,

Kishen

SunilKumar_P
Giga Sage

Hi @sushma9 , Do you have Reverse if false set to true?

 

Regards,

Sunil