setVisible or setDisplay is not working on my Catalog Item after Upgrade to Kingston.

hansonolatunde
Kilo Explorer

I am planning to upgrade my live instance from Helsinki to Kingston. However, i did the first test upgrade in Dev Instance and i found out that the logic below do not work again in forms

1. When i pick no from the option button it will hide the container (personal details)

find_real_file.png

2. below is my Catalog Script

find_real_file.png

In addition i use the UI Policy and UI Action but still not working.

This use to work in Helsinki

3. In Helsinki (see below)

find_real_file.png

How do i go about this?

Hanson

8 REPLIES 8

ursnani
Giga Guru

HI Hanson,



UI Policy Should Work.



Can you please paste your UI Policy here


Rajesh Mushke
Mega Sage
Mega Sage

Hey hansonolatunde



Remove the new value from the first condition, can you change your condition like this and try again,



function onChange(control, oldValue, newValue, isLoading) {


if (isLoading) {


return;


}



if (new value == "no" ){


put your remaining o code here


}




let me know, if it doesn't works.




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Shishir Srivast
Mega Sage

What i think is may be the containers have a mandatory fields and that's why we can't hide it. I didn't tried but we can check if we make the fields non-mandatory helps?


Hi Shishir



yes, you are correct if the fields are mandatory then we cant hode the container, what we can do is like We can make the fields mandatory in the Same ui Policy where we are making the Container Visible.