Page 1 of 1

Change function not working for for fRecurrence

Posted: 28 Mar 2016
by gleegeld
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?

Re: Change function not working for for fRecurrence

Posted: 29 Mar 2016
by rostislav
Try this:

Code: Select all

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

Re: Change function not working for for fRecurrence

Posted: 05 Apr 2016
by gleegeld
Works, thanks so much!