change event not working
Posted: 11 Jul 2014
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');
}
})
fd.field('RequestType').change(function(){
if (fd.field('RequestType').value() == 'Terminate') {
alert('test');
}
})