# Form and pre-fill fields

**URL:** <https://community.hubspot.com/t/form-and-pre-fill-fields/79175>\
**Category:** CMS Development\
**Tags:** forms\
**Created:** [April 12, 2023, 2:49pm UTC](https://community.hubspot.com/t/form-and-pre-fill-fields/79175 "2023-04-12T14:49:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GWeyland](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@GWeyland](https://community.hubspot.com/u/GWeyland)\
**Post date:** [April 12, 2023, 2:49pm UTC](https://community.hubspot.com/t/form-and-pre-fill-fields/79175/1 "2023-04-12T14:49:46Z")

</div>

```auto
Hello!We have forms that contain fields whose name contains "/".
We manage to prefill the form but not those whose name contains this "/". Example: 0-2/name
I tried to urlencode the field name, that doesn't work either:

0-2/name=Tandem..
0-2%252Fname=Tandem..

The embed documentation does not offer to explicitly pass the values ​​during its initialization: https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options
Do you have another solution for me?
Thanks in advance!

Good day!

```

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [April 13, 2023, 3:17pm UTC](https://community.hubspot.com/t/form-and-pre-fill-fields/79175/2 "2023-04-13T15:17:19Z")

</div>

Hi, there. Can you provide any additional details? Screenshots, a bigger code block? Having additional context helps the community better understand how and if they can assist with your project.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![GWeyland](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@GWeyland](https://community.hubspot.com/u/GWeyland)\
**Post date:** [April 17, 2023, 8:22am UTC](https://community.hubspot.com/t/form-and-pre-fill-fields/79175/3 "2023-04-17T08:22:09Z")

</div>

Hello, and thank you for your feedback.  
Here is a page to test directly the pre-filling of the form fields.

[https://www.celge.fr/page-test-form-hubspot?lastname=NOM&0-2/name=TEST](https://www.celge.fr/page-test-form-hubspot?lastname=NOM&0-2/name=TEST)  
(password : test-hubspot)

The pre-filling works well for the “Lastname” field but not for the “0-2/name” field, certainly because of the “/”.

I tried to encode it but without success: 0-2%252Fname=TEST

Ideally we would like to not have to change the name of this field because it is used in many places in our Hubspot configuration.

Thank you in advance for your interest!  
Have a nice day!
