What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Dynamically change Thank you page url

    Asked by IMBERT Matthias on February 04, 2014 at 10:23 AM

    Hi there,

    I developped this website www.meaglesun.com which is bilingual (English and French).

    I use the same form from Jotform on those two pages :

    http://www.meaglesun.com/nous-contacter/

    http://www.meaglesun.com/en/contact-us/

    I insist both pages send datas to the same jotform.

    Actually, there is only one Thank You Page URL, the same for both langages. I would like to know if I can dynamically change the Thank you page Url in order to send the english users on another URL after submitting the form.

    I know there is some javascript functions that can be used to change some parameters like JotForm.alterTexts().

    Is there anything similar to change the Thank You Page URL?

    Thank you in advance,

    Matthias

    Page URL:
    www.meaglesun.com

    page url JotForm french www parameters
  • Profile Image

    Answered by Carina on February 04, 2014 at 10:53 AM

    Hello Matthias

    Yes you can create a custom thank you page. You can either redirect users to a pre-existing custom page:

    Or you can edit the Jotform thank you page. To do that, please click on Thank you icon in the menu. Select "Thank you message".

    And then you can either edit directly (1) or editing in our HTML editor (2)

    Kindly let us know if you need more assistance.

     

  • Profile Image

    Answered by tamias on February 04, 2014 at 10:59 AM

    Thank you Carina for your answer.

    I have already created a Thank you page, which is actually http://www.meaglesun.com/merci/

    Now I would like to change this dynamically, that means if the form is submitted from this page : http://www.meaglesun.com/nous-contacter/, i keep the same Thank You Page URL

    BUT if the form is submitted from this page : http://www.meaglesun.com/en/contact-us/

    I would like the thank you page to be : http://www.meaglesun.com/en/thank-you

    Do you know if I can dynamically change the Thank You Page URL parameter, for example using a javascript function like JotForm.alterTexts().

    That would be awesome!

    Thank you very much for your help,

    Matthias.

  • Profile Image

    Answered by Carina on February 04, 2014 at 11:37 AM

    Hello Matthias

    Please check this forum thread:

    https://www.jotform.com/answers/294442-Can-I-display-my-form-in-two-languages-at-a-time-in-two-different-websites

    Portuguese form

    English form

    If you try to submit the different versions you will get a translated "Thank you" message.

    Let us know please if you need more assistance.

  • Profile Image

    Answered by tamias on February 04, 2014 at 11:48 AM

    Thanks again Carina,

    Indeed this forum thread is about the same problem, but the solution provided use the functionnality "Thank You Message", and not the "Thank You Page URL".

    For marketing purpose (tracking conversions on the website) I really need to use the Thank You Page URL functionnality.

    Do you know if I can change it dynamically using javascript?

    Thanks,

    Matthias

  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on February 04, 2014 at 12:21 PM

    You can use conditional logics to redirect to the page in the said language

    accessing conditions

     

    Select Change Thank You URL after submission

    and stablish the conditional logic to redirect to the URL accordingly, such as :

    If Option X is equal to English

    Then Redirect to  www.domain.com/englishthankyou.html

     

    IF Option is Equal to German

    Then Redirect to  www.domain.com/germanthankyou.html

     

    See how conditional URL can be applied:

     

    The URL to redirect should contain the version of the language

  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on February 04, 2014 at 12:23 PM

    I forgot to mention that you can do this for each form embedded into your webpages

  • Profile Image

    Answered by tamias on February 04, 2014 at 01:22 PM

    Wow Jeanette ! That sounds awesome!

    I suppose that I have to put an hidden field into the form that will explicit the langage of the submitted form.

    I'm gonna give it a try tomorrow, thank you so much!

    Good Evening,

    Matthias

  • Profile Image

    Answered by tamias on February 05, 2014 at 09:38 AM

    Hi there,

    I did it and it works perfectly!

    Thanks again Jeanette for your help!

    Matthias

  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on February 05, 2014 at 09:46 AM

    I am very glad to know the workaround I proposed along with the hidden field worked perfectly for you

    Cheers!