# Setting a value to a Developer Form Field

**URL:** <https://community.hubspot.com/t/setting-a-value-to-a-developer-form-field/140749>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [October 8, 2025, 2:08pm UTC](https://community.hubspot.com/t/setting-a-value-to-a-developer-form-field/140749 "2025-10-08T14:08:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![UweS](https://avatars.discourse-cdn.com/v4/letter/u/ec9cab/32.png) [@UweS](https://community.hubspot.com/u/UweS)\
**Post date:** [October 8, 2025, 2:08pm UTC](https://community.hubspot.com/t/setting-a-value-to-a-developer-form-field/140749/1 "2025-10-08T14:08:17Z")

</div>

I use the new forms in developer mode to style the font with a local hosted font.

How can I pass a value into a hidden field. The get paramater works, but is there an other possibility:

```lia-code-sample
...
:root {
 --hsf-global__font-family: "DIN";
 --hsf-global__font-size: 1em;
}
</style>

<script src="https://js.hsforms.net/forms/embed/developer/xxxx.js" defer></script>
<div class="hs-form-html" data-region="na1" data-form-id="ccb78180-39d6-4c53-9245-xxxxxxxx" data-portal-id="xxxx"></div>

```

Now I will set the hidden field “Seminar\_ID” to “test”.  
THX

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [October 8, 2025, 4:37pm UTC](https://community.hubspot.com/t/setting-a-value-to-a-developer-form-field/140749/2 "2025-10-08T16:37:46Z")

</div>

Either use URL parameters _[https://yoururl.com?Seminar\_ID=test](https://yoururl.com?Seminar%5C_ID=test)_ or [global form events](https://developers.hubspot.com/docs/api-reference/global-form-events/guide#global-form-events). Example:

```lia-code-sample
window.addEventListener('hs-form-event:on-ready', async (event) => {
 const form = HubSpotFormsV4.getFormFromEvent(event);
 form.setFieldValue('0-1/Seminar_ID', 'test');
});

```

---

<div class="post-metadata">

**Author:** ![UweS](https://avatars.discourse-cdn.com/v4/letter/u/ec9cab/32.png) [@UweS](https://community.hubspot.com/u/UweS)\
**Post date:** [October 9, 2025, 5:55am UTC](https://community.hubspot.com/t/setting-a-value-to-a-developer-form-field/140749/3 "2025-10-09T05:55:18Z")

</div>

Perfect! Thank you very very much!
