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

arnabwa
Giga Guru

Hi,



Please use single inverted commas while declaring 'false' or 'true'. Like this below :



function onLoad() {


 


      g_form.setMandatory('first_name', 'false');


      g_form.setMandatory('last_name', 'false');



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




}



Please let me know if this worked.



Thanks,


Arnab


I already have single inverted commas


Hi i have used UI policies and now w it seems to be okay....Thanks all for all your instant help.