Custom fields change function not triggered

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
lijupnandanan
Posts: 16
Joined: Mon Apr 11, 2016

20 Oct 2016

Hi,
I have a custom field for cross site look up. That's dropdown field. But the change function of that dropdown is not working. how can i resolve this?

I used this code

fd.field('ProjectType').change(function()

{

});



If its a normal sharepoint look up field then the change event works perfectly. This is not working only in case of my custom field.

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

20 Oct 2016

Please, try this:

Code: Select all

fd.field('Project1').control()._el().find('select').change(function() {
  // your code here
});

lijupnandanan
Posts: 16
Joined: Mon Apr 11, 2016

20 Oct 2016

Hi,
How can I get the selected value of this look up column?

I tried both this .. But doesn't works.

alert(fd.field('Project1').control().value());

alert(fd.field('Project1').control()._el().text());

lijupnandanan
Posts: 16
Joined: Mon Apr 11, 2016

20 Oct 2016

I tried this also
fd.field('Project1').control('getSelectedText')

but not working

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

20 Oct 2016

What about this:

Code: Select all

fd.field('Project1').control()._el().find('select option:selected').text();

lijupnandanan
Posts: 16
Joined: Mon Apr 11, 2016

20 Oct 2016

Thank you.. its working :)

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests