Page 1 of 1

change event not working

Posted: 11 Jul 2014
by mleverts
I have a drop down choice field. I am trying to control tab visability with this field. I was unable to get that to work so thought I would try something easier. I have created the following script and this still doesn't work. The field name is RequestType. I have three choices Add, Change, Terminate. Currently my test record is set to Add. I would expect that when I change the drop down to Terminate it would shoot an alert.


fd.field('RequestType').change(function(){
if (fd.field('RequestType').value() == 'Terminate') {
alert('test');
}
})

Re: change event not working

Posted: 14 Jul 2014
by Dmitry Kozlov
Please, make sure that the 'RequestType' is an internal name of the field, not a title. Also, check that you don't have JS-errors on the form page. If it doesn't help, please, send HTML-source of the form page to support@spform.com.