Re: Redirect to a new form if user selects country value in a drop down

Anonymous
Not applicable

Redirect to a new form if user selects country value in a drop down

Does anyone know if I can redirect a user to a different form through a form completion?  I have a dropdown value countries and If the contact select one specific country in the form, I would like to redirect them to the form of the language selected. I know I have to create different form for each language. But, how can I have this process done where Marketo captures the value of the country and redirect automatically to a "language" different form?

Thanks for your help.

Andreia

3 REPLIES 3
Akshay_Pant
Level 5

Re: Redirect to a new form if user selects country value in a drop down

Hi Andréia Repsold de Souza,

Yes, we can achieve by using segmentation. We need to create the segmentation based on the country. We will put the form dynamically according to the country language in each segment. We would implement a simple drop down on the landing page with multiple languages values. When user select the particular languages, the links present in the drop down values with the segmentation name, will redirect to the user to the specific form.

Regards,

Akshay

Josh_Hill13
Level 10 - Champion Alumni

Re: Redirect to a new form if user selects country value in a drop down

I'm not sure it will do that depending on the exact use.

a Country or Language Segmentation with a set of Forms that were made Dynamic on the Page will definitely do this without requiring a drop down.

But if we don't know their Country or Language, they would have to submit the Form before it displayed the correct next step in their language.

But you could use Visibility Rules or some scripts to also do this.

SanfordWhiteman
Level 10 - Community Moderator

Re: Redirect to a new form if user selects country value in a drop down

Sure, a barebones implementation is like so:

[1] Create a segmentation by language:

pastedImage_0.png

Note you do not have to sort people into segments ahead of time. In fact, you can't segment a new lead in time to use their segment in a follow-up page. But that's totally fine, as we're using runtime segmentation which doesn't use their database record.

[2] Create an LP with a named Form element that's dynamic + segmented based on language.

[3] A placeholder form with a <select> where they can choose their language:

pastedImage_2.png

pastedImage_3.png

Note this form will not generate Filled Out Form activities. We're just using it as an interstitial form to direct based on their language choice.

[4] Couple of lines of Forms JS:

MktoForms2.whenReady(function(form){

  form.onSubmit(function(form){

    form.submittable(false);

    document.location.href = 'https://mySegmentedLP.example.com/?PreferredLanguage=' + form.getValues()['PreferredLanguage'];

  });

});

This code stops the form from completely submitting (thus why you don't see a Filled Out Form) but captures the language value, then redirects to the variant of the LP (in [2] above) that shows their language.