# Embedded Form submission & redirect URL based on form parameters

**URL:** <https://community.hubspot.com/t/embedded-form-submission-redirect-url-based-on-form-parameters/15833>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [August 20, 2019, 10:21am UTC](https://community.hubspot.com/t/embedded-form-submission-redirect-url-based-on-form-parameters/15833 "2019-08-20T10:21:36Z")\
**Posts on this page:** 1\
**Showing post:** 23

<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:** [March 18, 2022, 9:10pm UTC](https://community.hubspot.com/t/embedded-form-submission-redirect-url-based-on-form-parameters/15833/23 "2022-03-18T21:10:17Z")

</div>

@jkeough78 The issue you’re having is that HubSpts onFormReady() local callbacks require jQuery to function (I am aware this is a bit annoying).

If you open up your JS console in chrome and submit the form you’ll see the following exception being thrown:  
**The onFormSubmit function in hbspt.forms.create requires jQuery. It was not run.**

You’d need to ensure you load jQuery - or polyfill the method HubSpot is looking for in its forms.js script to get those local callbacks to work.

There are ways to do this with the global callbacks that utilize the window.postMessage API - but it involves more custom javascript due to not having jQuery available for a better API to grab the field values easily.

---

_[View the full topic](https://community.hubspot.com/t/embedded-form-submission-redirect-url-based-on-form-parameters/15833)._
