Scheduler repeat event [SOLVED]

Hello,
i want to allow user of my page to repeat event, like on this sample
https://docs.dhtmlx.com/scheduler/samples/09_api/10_custom_recurring_form.html
but if i choose repeat daily, it will repeat non stop. In this case, i would like to have a repeat event with an option to choose when to stop.
ok this case is solved