Change function not working for for fRecurrence

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
gleegeld
Posts: 13
Joined: Tue Jun 30, 2015

28 Mar 2016

Hello,

I am trying to automatically set the end by date when the Recurrence field is checked. But I am stuck at the first step and I cannot get anything to fire when the Recurrence field is checked.

I have tried
fd.field('fRecurrence').change(function () {
alert('here');
});
and I have tried

$('input[id^=RecurrenceField]').click(function () {
alert('there');
});
neither seem to trigger the alert.
Can you tell me what I am missing?

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

29 Mar 2016

Try this:

Code: Select all

 fd.field('fRecurrence').control()._el().find('[title="Recurrence"] > input').click(function(){alert(this.checked);})

gleegeld
Posts: 13
Joined: Tue Jun 30, 2015

05 Apr 2016

Works, thanks so much!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests