Create an event by clicking on the calendar

Hello,

I am trying to build an “obvious” fonctionnality with the full calendar plugin, that is showing a popup to create an event when clincked on a day/time inside the calendar. The popup should be automatically filled with data such as the date and starting time selected by clicking on the calendar.

I tried using the "When Calendar X’s day is clicked :

Step 1 : Show popup
Step 2 display data in Popup => But here I don’t know how to retrieve and display the date and start time that I clicked.

I searched everywhere how to do this but I could not find the info…

Put the calendar on the page

Then search for the “When a calendar day is clicked” workflow in the workflow tab, and execute what you want.

Well, there are a few ways you can do this and they will depend on what you really want. Especially if it is a functionality that will be used in the future to edit the event, for example, where the popup data source will interfere.

# Approach 1

1 - Create a Custom State (date type) on the popup

2 - Use the action “When Calendar day is clicked” to:
2.1 - Show/Animate popup
2.2 - Set the current date clicked as the value to the Custom State (using set state action)

3 - Use some input to get the Custom State value as default input value (the use of input would be to allow the users to change the date if they want)

4 - Create the event using the input value and other info needed


# Approach 2

1 - Set the popup’s type of content as date

2 - Use the action “When Calendar day is clicked” to:
2.1 - Show/Animate popup
2.2 - Set the current date clicked as the data source of the popup (using display data action)

3 - Use some input to get the Parent’s Group date as default input value (using input for the same reason mentioned in the approach 1)

4 - Create the event using the input value and other info needed

This topic was automatically closed after 70 days. New replies are no longer allowed.