- weightwinsAsked on December 06, 2012 at 09:51 AM
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,
- JotForm SupportabajanAnswered on December 06, 2012 at 10:07 AM
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.
- weightwinsAnswered on December 06, 2012 at 12:02 PM
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?
- JotForm SupportDeygusAnswered 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.
- weightwinsAnswered 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.
- fxrAnswered 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.
- weightwinsAnswered on December 07, 2012 at 10:28 AM
I just want to send people from form A to form B with their data intact!!!
- JotForm SupportNeilVicenteAnswered on December 07, 2012 at 11:05 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.
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?
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?
- weightwinsAnswered 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:
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:
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:
What do you think?
- JotForm SupportNeilVicenteAnswered 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.
- weightwinsAnswered 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.
- weightwinsAnswered on December 10, 2012 at 12:56 PM
- JotForm SupportNeilVicenteAnswered on December 10, 2012 at 01:07 PM
What is the URL of the form to which the variables will be sent?
- weightwinsAnswered on December 10, 2012 at 01:21 PM
I've been playing with this one: http://jotformpro.com/form/23234743609959
- JotForm SupportNeilVicenteAnswered on December 10, 2012 at 01:49 PM
Thank you for that information. We'll get back to you once the script is ready.
- JotForm FounderaytekinAnswered on December 11, 2012 at 08:01 AM
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.
- JotForm SupportNeilVicenteAnswered on December 12, 2012 at 02:52 PM
Copy this simple script and paste it onto your PHP redirection page:
- weightwinsAnswered 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!
- JotForm SupportabajanAnswered on December 13, 2012 at 05:32 AM
On behalf of Neil, you're quite welcome :)
- JotForm SupportjonathanAnswered on January 07, 2013 at 05:01 PM
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.