# Customize default field values for form Embed code

**URL:** <https://community.hubspot.com/t/customize-default-field-values-for-form-embed-code/1560>\
**Category:** HubSpot Ideas\
**Tags:** integrations, forms\
**Created:** [April 10, 2017, 1:03pm UTC](https://community.hubspot.com/t/customize-default-field-values-for-form-embed-code/1560 "2017-04-10T13:03:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Shay](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/shay/32/54226_2.png) [@Shay](https://community.hubspot.com/u/Shay)\
**Post date:** [April 10, 2017, 1:03pm UTC](https://community.hubspot.com/t/customize-default-field-values-for-form-embed-code/1560/1 "2017-04-10T13:03:27Z")

</div>

[Migrated from legacy feedback forum with 68 votes.](http://ideas.hubspot.com/forums/76407-general-hubspot-ideas/suggestions/5485929-customize-default-field-values-for-form-embed-code)

I have had several instances where the ability to set the default values for form fields would have saved me hours of integration time.

For example:

My client has 10 webinar pages each with its own unique thank you page. Our current form configuration (not-HubSpot integrated) redirects the user to the appropriate thank you page which contains the webinar requested for view.

I can already dynamically change the thank you page destination from the form embed code - but what I am looking for is to also set a hidden fields value inside the embed code as well.

For example the embed code would look something like this:

\<script\>  
hbspt.forms.create({  
portalId: ‘XXXXXX’,  
formId: ‘XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX’,  
formFields: {  
fieldID1 : {  
value : “my value”  
},  
fieldID2 : {  
value : “my value”  
}  
}  
});  
\</script\>

Where the field ID parameters and their values would correspond to certain fields (hidden or visible) in the form. This would allow me to use a single form across multiple pages on my site and also be able to send through the correct values for certain form fields based on the action / content they requested on the site.

If you guys can do this - or if it is already possible and I didn’t know about it - I would love you forever.

---

_[View the full topic](https://community.hubspot.com/t/customize-default-field-values-for-form-embed-code/1560)._
