disabling certain sections in recurring block

Hi,

I need to have only Daily → no end date and Daily → end by as per the requirement.

i have displayed the necessary sections by editing the recurring.js file…but while saving, it has to always return “day_1___#no” Or “day_1___#” (please refer the attached image)

no other values should be returned… i have passed this value explicitly while saving… but once the event is saved, it is displaying the recurring events as "week_1__1,2,3,4,5#no’ condition only… after refreshing the entire page, the recurring events are rendered properly.

i have tried the following, but no success:

scheduler.attachEvent(‘onEventSave’,function(id,data,is_new_event){
if(scheduler.formSection(‘recurring’).getValue()!=‘’){
var r =scheduler.formSection(‘recurring’).getValue();
var s = r.split(‘#’);
r=‘day_1___#’+s[1];
data.rec_type=r;
scheduler.formSection(‘recurring’).setValue(data.rec_type);
});

  1. Scheduler.Config.update_render = true;

but these are not working… it displays the data correctly only after refreshing the entire page.

Please suggest solution for this

Thanks for any help


it is displaying the recurring events as "week_1__1,2,3,4,5#no’
Scheduler makes such transformation when “workdays” checkbox is checked in recurring form.

hi,

thanks for replying. as in the attached image, i have make “style=‘display:none’” for all other sections of recurring event.

by default, i am loading week view. is that the reason?

can you please provide solution for always returning “day” as the type?