I am right not building a web application where users can create one time or repeated events.
When user is logged in and navigates to dashboard, then when he clicks on create a event button. Then there are following inputs he will fill out.
input: Event name
Input: Event date or time
Checkbox => check it if you want to repeat this event.
If user click on checkbox then a another input shows on the popup where the user can input in number ( how many times to repeat this event)
If not checked then no repeatation of that event in database as well as on repeating groups.
So, my question is how can I build this type of functionality where user checks the box, input for filling number ( how many times ) appears, clicks save event button, saves to the database as exact number the user inputted.
If I create a event with its name and date and then checks the box , a input appears where I type 3 and then hit save.
Then this particular event should be created I. The database 3 times and should be also shown on repeating groups 3 times.
How I can achieve this?
Please let me know about it