If check box checked then show a popup message

vahini
Giga Guru

Hi All , 

Can someone help me with my requirement . I created a check box on a catalog item forma and when user checks it , then a pop up message should appear notifying user some info . 

I create a onchange client script on that catalog item as shown below , is something wrong in the lines i wrote  ?  popup is not popping up . 

 

find_real_file.png

4 REPLIES 4

Brian Lancaster
Tera Sage

try putting true in single quotes.  Also since it is an on Change script you can do the following instead of g_form.getValue

if (newValue == 'true')

Hi Brian ,

 

Tried but no luck .

Mark Stanger
Giga Sage

Try this...

if(g_form.getValue('u_training_class_not_listed' == 'true'))

I did it using a UI policy and works as expected . Thanks Mark