Alert not firing on onChange client script

sigmachiuta
Kilo Guru

i have a onChange catalog client script that DOES change the field values so it is running but it doesn't throw the alert.

if(newValue == 'No'){

      alert(getMessage('test'));

      g_form.setValue('foo' , 'No')

      g_form.setValue('bar' , 'No')

   

      }

--or

if(newValue == 'No'){

      alert('test');

      g_form.setValue('foo' , 'No')

      g_form.setValue('bar' , 'No')

   

      }

1 ACCEPTED SOLUTION

clear cache and check to clear form data and that should resolve that part of it.


View solution in original post

39 REPLIES 39

nothing...



find_real_file.png


Abhinay Erra
Giga Sage

Make sure you set the variable inside the getValue() method to No and variable name is correct. Other than that I cannot say anything more


could it be UI policies interfering ?


For testing purposes, inactivate the UI policies and see if it works.


nope, i disabled the UI policies and show the container fields and when i change foo nothing happens