g_form.setValue('box',true); doesn't work on service portal

sonita
Giga Guru

This code is perfectly fine on Try it , but doesn't work on service portal

variable 'box' is a checkbox 

 

g_form.setValue('box',true);   doesn't work on service portal 

 

I even selected UI type to be 'All' ; but still doesn't work on portal.

1 ACCEPTED SOLUTION

Rakhesh
Kilo Guru

Hi Sonita,

 

I'm getting the result. I'm using the UI policy. follow the below screenshots it works.

 

find_real_file.png

use runscripts in ui policy.

 

 

find_real_file.png

View solution in original post

10 REPLIES 10

sonita
Giga Guru

Thank you all , as some of you suggested , when using setValue with check boxes we should put true or false as a string--->

 

 

g_from.setValue('box','true'); ---> it works as expected