calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
31.1k stars 7.48k forks source link

Forward Booking Questions in Query Parameters #15755

Open its-julian opened 1 month ago

its-julian commented 1 month ago

Is your proposal related to a problem?

It's frustrating that I'm not able to access the "booking questions" via query parameters on the confirmation page.

(Write your answer here.)

Describe the solution you'd like

Currently, Cal provides the option to "forward parameters" to the "Redirect on booking" page. However, the issue is that these parameters only include the basic event details.

There is no option/inclusion to forward the "booking questions" inside of the query parameters as well.

We need this data available on the booking page, so it would be great to have the option to forward these data points as well.

Describe alternatives you've considered

None, there's no way to solve this since Cal's infrastructure is controlling this entire step.


House rules
ciaranha commented 1 month ago

@hariombalhara is there a way to do this? I think I recall you sharing a way before.

hariombalhara commented 1 month ago

It should be trivial to pass on booking responses in the query param.

Though we need to agree upon the naming convention as there are more query params apart from responses which could conflict with booking question identifiers

I think namespacing would be best for responses like responses.name

Flash-Shivam commented 3 weeks ago

@ciaranha @hariombalhara @its-julian I have implemeted this feature , kindly check the PR.

anikdhabal commented 3 weeks ago

Things to consider when fixing this issue:

  1. You need to add a checkbox similar to the other parameter to include the booking response in the URL

Screenshot 2024-08-17 085926

  1. If both checkboxes are checked, you will see two location parameters in the URL. This is because we provide the location parameter by default, and the location response is included in the booking response. So make sure the actual one location param should present.

  2. As @hariombalhara suggested, namespacing would be best for responses like responses.name