setDisplay is not working in onload catalog client script

snowuser111
Kilo Guru

Hi,

setDisplay is not working in onload catalog client script and instead of meeting all conditions it displays the variable Set.Can some one please help. I used setVisible instead but the container still shows long though blank looks weird. if the variable set is hidden then container also should not be seen so long. We recently are in helsinki

Thanks

_____________________________________________

function onLoad() {

   

      g_form.setMandatory('first_name', false);

      g_form.setMandatory('last_name', false);

g_form.setDisplay('variable Set name', false);

}

______________________________________________

1 ACCEPTED SOLUTION

BALAJI40
Mega Sage

I think instead of try with onLoad,


try with configure dictionary of filed(always mandatory) or UI policy(which will run on onLoad)


View solution in original post

7 REPLIES 7

BALAJI40
Mega Sage

I think instead of try with onLoad,


try with configure dictionary of filed(always mandatory) or UI policy(which will run on onLoad)


Hi balaji,



Are you mentioning about catalog UI policies? .


ayush_saxena
Tera Expert

I think using Catalog UI policy would be a good option. For above problem statement please check if their is a conflict between client side scripts, this issue normally arises due to that.


zica
Giga Guru

Snowuser11,



I think the behavior is seen quite often, it also depends on the browser, if you open the developper tools, you'll see that its throuws an errow.


This is my advice : For this kind og query, I've gone with a global UI policy.