Hi guys
I want to repeat the event Biweekly & quarterly.
There are some default repeating options that are
Daily
Weekly
Monthly
Yearly
I added 2 more options: Biweekly & quarterly.
Now the options are;
Daily
Weekly
Biweekly
Monthly
Quarterly
Yearly
My requirement is:
While a lead is created an event is automatically created. and I added a new section to the lead doc to add details of the first meeting.
There is a class field that is selected based on the possibility to become the lead to the customer.
If class A the event repeat based on weekly
If the class is B the event repeat on Biweekly
If class C event repeat on Monthly
I updated the event based on classes A, C after saving of lead with meeting updates and the possibility. But I want to update the event biweekly also
Please help me with this.
I tried a custom script to add the dates with the start date of the event but the document was not repeated
frappe.ui.form.on(âEventâ, âonloadâ, function(frm){
frm.set_value(âbiweeklyâ, frappe.datetime.add_days(frm.doc.starts_on, 14));
//frm.set_value(âends_onâ, frappe.datetime.add_months(frm.doc.starts_on, 1));
})
Please help me how to repeat the event based on biweekly.