cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

[CAL-1138] Refill Booking Form with Routing Form fields effortlessly.

Open hariombalhara opened this issue 2 years ago • 8 comments

Hello. I have a question. Is there a way you can pre-populate the calendar form that ask name and email with the info from a routing form. So we can improve the user experience by filling just one a form. Thank you!

Slack Message

CAL-1138

hariombalhara avatar Feb 23 '23 08:02 hariombalhara

Can I take up this issue?

rksingh2001 avatar Feb 28 '23 06:02 rksingh2001

Can you assign this to me @hariombalhara ?

rksingh2001 avatar Mar 03 '23 09:03 rksingh2001

@rksingh2001 sure assigning you. But I would like you to share your approach as well, before doing a lot of code, as it might not be straightforward.

hariombalhara avatar Mar 03 '23 10:03 hariombalhara

Hello @hariombalhara, do we want to remove the fields in case they doesn't exist or prepopulate them?

rksingh2001 avatar Mar 19 '23 11:03 rksingh2001

I think prepopulating but also marking them hidden would be a better and simple option.

hariombalhara avatar Mar 19 '23 11:03 hariombalhara

Well pre-populating does give them ability to change it in case they want to

rksingh2001 avatar Mar 20 '23 05:03 rksingh2001

Yes but they already provided the response in Routing Form and allowing it to change would store the data inconsistently. Right now Routing Form stores its responses in a different table then Booking responses,so it's important to ensure that duplication is consistent.

hariombalhara avatar Mar 20 '23 08:03 hariombalhara

@hariombalhara Sorry, got busy in some personal stuff, will try to pick this up again on the weekend

rksingh2001 avatar Apr 26 '23 08:04 rksingh2001

With this PR https://github.com/calcom/cal.com/pull/8780 routing form responses are automatically passed on to Booking Form. If there is a field by the same name/identifier, it would be automatically filled.

I am closing this ticket for now. If it makes sense to automatically hide the prefilled questions then we can open a separate enhancement ticket.

hariombalhara avatar May 29 '23 12:05 hariombalhara