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

    Using {tags} in Custom Thank You URL option

    Asked by weightwins on December 06, 2012 at 09:51 AM

    I've seen systems where people's Facebook profiles are used to pre-fill a form. Two ways; one was using Log In with Facebook, the other is shown here.

    Are there ways to replicate this functionality with JotForm? I think that if you were to build a Log In with Facebook connection, it would be something you could offer to all your customers, right?

    Thanks for the help,

    Simon.

    JotForm Facebook integration pre-filled profile Fit forms pre-filled details pre-filled user info Facebook
  • Profile Image
    JotForm Support

    Answered by abajan on December 06, 2012 at 10:07 AM

    Hi Simon

    You'll be happy to know that we already have this feature in our form builder. Please see this blog post for details and if you would like further information, we'd be happy to help.


    Wayne

  • Profile Image

    Answered by weightwins on December 06, 2012 at 12:02 PM

    That's great!

    Given that some people use fake names on their profiles, I was thinking about using the data to auto-fill another form, so potential members could verify that their info was correct.. Am I running into the same problem I did here, where I can't pass variables on through a URL redirect?

  • Profile Image
    JotForm Support

    Answered by Deygus on December 06, 2012 at 01:29 PM

    On behalf of my colleague you are welcome. 

    Also I would like to point out that you should be able to carry over the variables as done in this guide http://www.jotform.com/help/71-Prepopulating-the-fields-to-your-JotForm-via-URL-parameters

    If you are still having issues please let us know.

  • Profile Image

    Answered by weightwins on December 06, 2012 at 01:31 PM

    But form A isn't able to provide URL parameters to form B, is it? Have a look at my other forum post here and let me know if we were wrong.

  • Profile Image
    JotForm Support

    Answered by fxr on December 06, 2012 at 03:15 PM

    Form A can provide URL parameters to Form B, but it needs to be via a server side scripting language like php.

  • Profile Image

    Answered by weightwins on December 07, 2012 at 10:28 AM

    Is there any way I can persuade you to add URL parameters to your "Custom URL" Option on the thank-you wizard? It's the only way I can get any of these options to work, it seems. The alternative would be to allow scripting (Javascript, PHP, anything) on your "thank you page" option.

    I just want to send people from form A to form B with their data intact!!!

     

    Thanks,

    S

  • Profile Image
    JotForm Support

    Answered by NeilVicente on December 07, 2012 at 11:05 AM

    @weightwins

    Is there any way I can persuade you to add URL parameters to your "Custom URL" Option on the thank-you wizard? It's the only way I can get any of these options to work, it seems.

    I am not sure if this is a good idea. JotForm URL parameters will work only for JotForm-created forms. If a JotForm user enters a different custom URL, then this feature would pretty much be useless, no?

    The alternative would be to allow scripting (Javascript, PHP, anything) on your "thank you page" option.

    I am afraid this is an absolute no-no. Allowing scripting on our pages opens up the potential for cross-site scripting. We are very much concerned about security, so I don't think this is an option.

    ------------

    I think some of us here may be able to come up a lightweight PHP script (will be hosted on your server, of course) if your forms don't have that many fields. Can you please provide the URL of both forms?

  • Profile Image

    Answered by weightwins on December 07, 2012 at 11:34 AM

    Well, at the moment your JotForms can recieve URL parameters, but they can't send them. Using the post Deygus mentioned, you can input data into a form via URL paramters:

    http://www.jotform.com/form/10565343954?fullName[first]=Joey&fullName[last]=Smith

    But let's say that was form 2. You can't send URL parameters from a JotForm, as if you set the custom URL to be:

    http://www.jotform.com/form/10565343954?fullName[first]={name.first}&fullName[last]={name.last}

     

    The parameters don't get passed on. Strangely, if you embed that URL as a link on a 'thank you' page, the parameters are passed on, but that requires the user to click on a link, for no reason.

     

    Other users would be able to use these parameters for other purposes, eg:

     

    http://www.google.com/?s={name}

     

    What do you think?

     

    Unfortunately I can't use scripts other than Javascript on my host- otherwise I'd host the forms myself!

     

    Thanks,

     

    S

  • Profile Image
    JotForm Support

    Answered by NeilVicente on December 07, 2012 at 11:50 AM

    Thank you for that lengthy, yet reasonable explanation. I now agree with you, this option can be quite useful.

    I'll have to forward this as a feature request. However, as with all other requests, we cannot guarantee implementation, let alone approval.

    A short PHP script would have been the fastest way to tackle this - it is too unfortunate that your server does not allow it.

    In any case, we will inform you if ever the feature you requested becomes implemented in a future update. Thank you very much for your input.

  • Profile Image

    Answered by weightwins on December 10, 2012 at 12:19 PM

    Thanks Neil. Give me an email if you have a PHP script I can use and I'll see if I can find somewhere to host it.

  • Profile Image

    Answered by weightwins on December 10, 2012 at 12:56 PM

    OK, found a cheap host and I've set up the PHP test:

    http://form.jotformpro.com/form/23414467841960

    points to:

    http://host22.qnop.net/~playweig/test.php

    ..and it reads out the contents correctly. Are you able to help reformat this so I can input it back into Jotform?

    Thanks!

  • Profile Image
    JotForm Support

    Answered by NeilVicente on December 10, 2012 at 01:07 PM

    What is the URL of the form to which the variables will be sent?

  • Profile Image

    Answered by weightwins on December 10, 2012 at 01:21 PM

    I've been playing with this one: http://jotformpro.com/form/23234743609959

  • Profile Image
    JotForm Support

    Answered by NeilVicente on December 10, 2012 at 01:49 PM

    Thank you for that information. We'll get back to you once the script is ready.

  • Profile Image
    JotForm Founder

    Answered by aytekin on December 11, 2012 at 08:01 AM

    My suggestion:

    1. Submit the form to page on your site called "redirect.php"

    2. Enable Send Post Data feature. 

    3. In redirect.php, get the data and then construct your URL. (Make sure to use urlencode on variables so that URL does not get broken depending on the data coming from form.)

    I will ask the support team to write a tutorial on this. 

  • Profile Image
    JotForm Support

    Answered by NeilVicente on December 12, 2012 at 02:52 PM

    @weightwins

    Copy this simple script and paste it onto your PHP redirection page:

    http://pastie.org/pastes/5517350/text

  • Profile Image

    Answered by weightwins on December 13, 2012 at 05:30 AM

    Fantastic! It works a charm, and I think I can reverse-engineer it for any future uses. Thanks so much!

  • Profile Image
    JotForm Support

    Answered by abajan on December 13, 2012 at 05:32 AM

    On behalf of Neil, you're quite welcome :)

  • Profile Image
    JotForm Support

    Answered by jonathan on January 07, 2013 at 05:01 PM

    @weightwins

    Hi, a new article Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page in Jotform's User Guide is now available. Please take note that the direct useage of tags in the form's thank you page is not yet available. 

    You can use this guide as base knowledge to construct your custom redirect php page though.

    Thanks.