Easiest way to add an event to google calendar - no plugin?

Hi guys,

I want someone to be able to save their hotel booking (stay) into their google cal or outlook by pressing a button in the booking tab. Is it possible without a plugin?

You can create a .ics file which is universal for all calendars or create dynamic links for each calendar app you want to let your users save to.

for example, for google calendar, upon button click you’d open up the following url in a new tab: https://calendar.google.com/calendar/render?action=TEMPLATE&text=[TITLE_URL_ENCODED]&dates=[START_UTC]/[END_UTC]&details=[DETAILS_URL_ENCODED]&location=[LOCATION_URL_ENCODED]

NOTE: Just make sure you format the date/time as: YYYYMMDDTHHMMSSZ

2 Likes

beautiful…is there a format like that for outlook as well? as in the initial hyperlink. and what do you mean by” _ENCODED” inside the link?

Google it.

url encoded operator in Bubble.

I’ve heard of GOogle thanks. Btw, this is a place where people help eachother. No need to be a wise guy :wink:

I already explained encoding earlier and gave a full working example of the pattern, including the required date/time formatting.

Once you understand that structure, the Outlook version is the same idea with different parameter name and is no longer a Bubble question.

Happy to help with Bubble-specific pieces, but I don’t think it’s reasonable to frame that as being unhelpful.

1 Like

@code-escapee had given a very helpful answer, by providing the exact setup needed. In terms of reply to your question of ‘is there similar for outlook’ he gave pretty solid advice there as well. As a teacher, I tried to help my students think like learners, so to their questions I normally posed questions back and did not simply provide the answer. The prompt to google it, was likely meant to help you to dive deeper into the subject on your own to get a more refined understanding of what is the setup…I don’t think he was trying to be unhelpful.

He did answer your other question and what is encoded, which normally, free help is deserving at least of recognition that the help is appreciated.

1 Like

which part of that says it was unhelpful? if you are true, be helpful and nice all the way without dirty pointers like “google it”. I think it’s reasonable to say don’t be sarcastic on the forums here, there’s no reason or point to do that.

Are you describing what “google it” means or the nuance of it? I’m grown up, thanks. I understood what he wrote there. Obviously he was sarcastic. As I said to him above, if you are nice and helpful, be all the way. The fact that I questioned his attitude and wiseness doesn’t mean the answer was not was helpful. Neverhtless, that sarcastic attitude stays crap and unnecessary.

I wasn’t being sarcastic. I answered the question and explained how it works. At that point, the only thing left was looking up Outlook’s version of the same link, which I didn’t think I needed to do.

If I wanted to be sarcastic, I would have responded very differently.

1 Like