https://cal.com logo
#developers
Title
# developers
l

Lynx

03/29/2022, 3:13 PM
Hi, is it possible also to prefill custom fields with a query as mentioned at https://docs.cal.com/developer/pre-fill
a

Alex Dowbor

03/29/2022, 5:36 PM
Hi @Lynx - the below works well for us. In this case you should see the name and email pre-populated (after you select a date and time). Is this not working for you? https://cal.com/alexdowbor/30min?name=Mickey&email=mickey@disney.com
👍 1
l

Lynx

03/29/2022, 6:32 PM
Thank you for your reply @Alex Dowbor. The default fields
name
and and
email
works fine. I have added additional custom fields to an event type and I haven't figured out, how to prefill them.
a

Alex Dowbor

03/30/2022, 3:44 PM
@Lynx i've did a quick test with a custom field called "company" and it pre-populates nicely. If you have spaces on your field names, you should escape them (space becomes %20 etc). Hope this helps. Alex https://cal.com/alexdowbor/30min?company=Disney&name=Donald
👍 1
l

Lynx

03/30/2022, 5:50 PM
@Alex Dowbor Thank your for testing. You are right. Using the field name (in lower cases) int the query works. I have tried to use the form input name (e.g.
customInputs.4
) instead. This was my fault.
🎉 1
2 Views