I implemented the form using HubSpot’s hbspt.forms.create JavaScript function, using the onFormSubmit callback to apply a conditional redirect.
When a user submits the form, the callback checks the selected form field value (course choice). Based on this input, the script dynamically redirects the user to the corresponding page, ensuring they land on content that matches their selection.