Custom fields change function not triggered
-
- Posts: 16
- Joined: Mon Apr 11, 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.
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.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Please, try this:
Code: Select all
fd.field('Project1').control()._el().find('select').change(function() {
// your code here
});
-
- Posts: 16
- Joined: Mon Apr 11, 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());
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());
-
- Posts: 16
- Joined: Mon Apr 11, 2016
I tried this also
fd.field('Project1').control('getSelectedText')
but not working
fd.field('Project1').control('getSelectedText')
but not working
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
What about this:
Code: Select all
fd.field('Project1').control()._el().find('select option:selected').text();
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests