Forms post-submission conditional logic

When a visitor submits my form, does anyone know how to “redirect to another page” based on conditional logic? I have a form that is attempting to “pre-qualify” the visitor. If they submit certain form responses, they are to be directed to a “success” page else they are shown a “you don’t qualify” page.

@delmer , I do not think there is a functionality available for this. So you might need to customze the Form Embed code and write your logic there using the onFormSubmitted callback. You should be able to do something like this:

hbspt.forms.create({
 portalId: '',
 formId: '',
 onFormSubmitted: function($form) {
 if ($('input[name="firstname"]').val() === 'something') {
 window.location.href = 'https://example.com'
 } else {
 window.location.href = 'https://example.com'
 }
 } 
}); 

Thank you, Teun!

Hi Teun, I tried your solution but I’m not too good at codes. can you please help me out? Here is the website: Leading Australian Outsourcing for Remote Staff | Twoconnect the form is at the bottom. I want redirect them to the Careers page if they choose the “Job Opportunity” in the dropdown field. This is how I set it up, am I doing it right?