APIs & Integrations

ballonura
Participante

Programmatically form redirect without jQuery (onFormSubmit)

resolver

There is anyway to do programmatically redirect the same form across multiple pages without require jQuery lib?

 

Like this solution just without jQuery:

https://community.hubspot.com/t5/Content-Strategy-SEO/Creating-a-download-or-e-book-download/td-p/35...

0 Me gusta
1 Soluciones aceptada
WendyGoh
Solución
HubSpot Employee
HubSpot Employee

Programmatically form redirect without jQuery (onFormSubmit)

resolver

Hey @ballonura ,

 

If you're using a non-HubSpot hosted pages, your team would have to use either the How to customize the form embed code or Using Global Form Events to set up the redirect. 

Ver la solución en mensaje original publicado

0 Me gusta
6 Respuestas 6
WendyGoh
HubSpot Employee
HubSpot Employee

Programmatically form redirect without jQuery (onFormSubmit)

resolver

Hey @ballonura,

 

Do you mean that after the visitor submits the form, you'd like to redirect it to another page?

 

If so, you can set it under the options form settings:

 

redirect.png

0 Me gusta
ballonura
Participante

Programmatically form redirect without jQuery (onFormSubmit)

resolver

I want use the same form accross multiple pages, but on each page, after submit redirect to different place.

0 Me gusta
WendyGoh
HubSpot Employee
HubSpot Employee

Programmatically form redirect without jQuery (onFormSubmit)

resolver

Hey @ballonura,

 

Can I check if these pages are HubSpot hosted pages? If yes, you can set different redirect page on the same page for different pages by setting it on the form module: Redirect a form submission on an offer page to gated content or a thank you page.

 

If you're using non-HubSpot form, the only way to set different redirect on different pages for the same page, is to use the How to customize the form embed code

0 Me gusta
ballonura
Participante

Programmatically form redirect without jQuery (onFormSubmit)

resolver

Hey @WendyGoh,

They non-Hubspot hosted pages, only HubSpot forms that embedded on my site.

0 Me gusta
WendyGoh
Solución
HubSpot Employee
HubSpot Employee

Programmatically form redirect without jQuery (onFormSubmit)

resolver

Hey @ballonura ,

 

If you're using a non-HubSpot hosted pages, your team would have to use either the How to customize the form embed code or Using Global Form Events to set up the redirect. 

0 Me gusta
ballonura
Participante

Programmatically form redirect without jQuery (onFormSubmit)

resolver

The @WendyGoh. For everyone interest, here is the non-jQuery solution:

https://legacydocs.hubspot.com/global-form-events

Good day. :manhappy:

0 Me gusta