Conditionally Customize Redirect URLs Before Form Submission

Conditionally Customize Redirect URLs Before Form Submission

I’d like to propose a HubSpot feature that allows for conditionally customizing redirect URLs based on form fields and page parameters. This would eliminate the need for custom code, improve performance, and enable more dynamic user experiences.


The Problem & Solution

Currently, I use custom JavaScript to append parameters (like UTM values) to a redirect URL after a form submission. This method is slow because the code must wait for a form submission event to fire before it can execute the redirect.

A native HubSpot solution would be faster and more efficient. Instead of waiting for an event, the platform could dynamically construct the redirect URL before the form is even submitted, resulting in near-instantaneous redirects.


Key Benefits & Use Cases

This feature would provide several benefits:

  • Improved Performance: Faster redirects lead to a smoother user experience.
  • Reduced Complexity: No more custom JavaScript, making form management easier for everyone, including those without coding knowledge.
  • Better Data: Accurately track attribution by appending UTMs and other parameters.
  • Personalization: Create dynamic, personalized user journeys based on form data.

This would also address existing community requests for using contact properties and pop-up URLs in redirects, as seen in these HubSpot Community Idea posts: