change event not working

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
mleverts
Posts: 1
Joined: Fri Jul 11, 2014

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');
}
})

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

14 Jul 2014

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.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests