Can't set the all day event field to true on form load
Hi,
Try this:
Try this:
Code: Select all
fd.field('fAllDayEvent').control()._el().find('input').attr('checked', true);
Try this:
Code: Select all
fd.field('fAllDayEvent').control()._el().find('input').click();
Thanks a lot for your reply, it really helped, just to avoid an infinite loop of checking and unchecking the field, i had to place your code in IF condition, here's the code that worked for me:
var allday = fd.field('fAllDayEvent').control()._el().find('input').is( ":checked" );
if (allday == false){
fd.field('fAllDayEvent').control()._el().find('input').click();
}
var allday = fd.field('fAllDayEvent').control()._el().find('input').is( ":checked" );
if (allday == false){
fd.field('fAllDayEvent').control()._el().find('input').click();
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 19 guests