# Include form fields as redirect URL parameters on an embedded form

**URL:** <https://community.hubspot.com/t/include-form-fields-as-redirect-url-parameters-on-an-embedded-form/11901>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [April 3, 2017, 11:29pm UTC](https://community.hubspot.com/t/include-form-fields-as-redirect-url-parameters-on-an-embedded-form/11901 "2017-04-03T23:29:39Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![derekcavaliero](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derekcavaliero/32/24634_2.png) [@derekcavaliero](https://community.hubspot.com/u/derekcavaliero)\
**Post date:** [May 13, 2020, 3:04pm UTC](https://community.hubspot.com/t/include-form-fields-as-redirect-url-parameters-on-an-embedded-form/11901/10 "2020-05-13T15:04:44Z")

</div>

@dimitreliasb

If you only need to pass 1 value through - simply dig into the form and get the value manually using the $form jQuery collection parameter in the onFormSubmit callback:

```auto
onFormSubmit($form){
 var email = $form.find('input[name="email"]').val();
 var redirectBase = 'https://www.google.com';
 window.location = redirectBase + '?email=' + email;
}

```

the reason your URL is breaking is because my previous script had a flaw. There are better ways to go about it - but for simple 1 parameter redirect logic - the above is as simple as it gets.

---

_[View the full topic](https://community.hubspot.com/t/include-form-fields-as-redirect-url-parameters-on-an-embedded-form/11901)._
