change event not working
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');
}
})
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests