×
HIDE

Integrate Google Calendar with your WordPress Booking Form

Tutorials

Step 1: Get access from Google.

1.1 – Create API key:

– Piotnet Addons > Settings > Integration > Google Calendar Integration> Click to “Click here to sign into your Gmail account and access Google Calendar’s application registration

(Click the image to zoom)

– Enable APIS and Services: Click to “Enable APIS and Services” which you can see in the below image. Then choose the Google Calendar API and enable it.

(Click the image to zoom)

(Click the image to zoom)

– Next, You have to create the API key in Credentials.

(Click the image to zoom)

– Click to Restrict Key

(Click the image to zoom)

– Choose to Restrict key > Google Calendar API.

Then save it. You will have an “API key”

(Click the image to zoom)

1.2 – Create Client ID and Client Secret:

– Click “Create OAuth client ID”

(Click the image to zoom)

– Choose to the Web application. Then enter Authorized JavaScript origins ( your domain ) and Authorized redirect URIs (you can get it in PAFE > Settings > Integration > Google Calendar Integration ).

(Click the image to zoom)

– Click to “Create” and you will have the Client Secret and Client ID:

(Click the image to zoom)

1.3 Get the access from your website:

– Get back to the PAFE settings page and enter all the information above to the setting of Google Calendar Integration

(Click the image to zoom)

– After entering all the information. Click on “Authorization”. And choose your account:

– Click on Advanced

– Click on Go to *your website*

(Click the image to zoom)

Step 2: Create the Form with PAFE Form Builder:

– You can create a form with same as the image in the below:

(Click the image to zoom)

– Choose “Google Calendar” in Action After Submit option

Fill out all field shortcodes that you set up in the form above. Same the image in the below:

(Click the image to zoom)

– If you choose the date type as date/ time, you must add the below custom code to Flatpickr Custom Options in the Date Start field and Date End field.

				
					{
enableTime: true, 
altInput: true,
altFormat: "Y-m-d H:i",
dateFormat: "Z",
}
				
			

Add the custom code for date field when date type is date time

(Click the image to zoom)

Send data from Booking Form to Google Calendar

Step 1: Create the Booking Form

Step 2: Get the Booking Form ID and enter it to Description of Google Calendar

Please check your email inbox. If you haven’t received anything,

also check your spam folder.

PAFE Form Builder

Extensions

PAFE Widgets

piotnet addons for elementor white icon
Popup Trigger URL
Piotnet Addons For Elementor