- perreracAsked on August 16, 2012 at 08:56 AM
First of all thank you for creating such a wonderful tool!
I have a little problem. I need to combine a form with a script. What this script does is to send download links to people via e-mail, after they fill out a form.
The problem is that, according to the developer, the script needs to get hold of the data before the form processor does. This way it can extract the information entered in the form.
Do you know any way this could be implemented using Jotform? If so, could you give me a hand please?
I would definitely be upgrading to Jotform premium if I can get this working, since then I would need much more capacity to receive submissions.
Thank you in advance!
- javierfAnswered on August 16, 2012 at 01:41 PM
What you want to do is completely possible using jotform. I can help you but i need some more information. explain to me where will the links be store the links that you will send to your users after finishing the form and what information do you need to extract from the form.
By the way, you can make a JS script to send information to a PHP file with which you can send an email with the information. To Send these mails you will need to have a mail server installed and configured and you can do this with PHP.
I am willing to help you.
if you wish for an explanation in spanish ir is also possible.
- perreracAnswered on August 16, 2012 at 06:37 PM
Thank you very much for answering. Actually English is fine for me, but if you prefer Spanish I 'm OK with that too ;) You tell me.
Look, this is the thing. I'm planning to use this script: http://www.vibralogix.com/linklokurl/
What this script does is to hide the actual address of the file being downloaded. On top of that, the developer has told me it is possible to modify the script in order to prevent people from downloading more than certain amount of files per hour/day.
In order to get this last functionality working, we have to use a form, which users must fill out; after the users send the info the script mails the link to the user.
Please download this Demo Form which is provided by the developer: http://www.mediafire.com/?v5q2hs6464927ui
In the file, this line: linklokemail('file1.zip',60,0,'http://www.vibralogix.com/index.htm',0)
The script allows using Amazon S3 for storing files, and that's what I want to use, and all the configuration data goes into the file that cointains the script. As far as I understand, the script sends the e-mails and no Mail Server is needed. There is no word about setting up an e-mail server nowhere in the manual.
From the manual this I think is new and useful information:
When submit is pressed the form action should be set to call the same page that contains it which in this case demo.php. LinklokURL supports both GET and POST methods.
To add LinklokURL to the form we will use the linklokemail function which
looks like this: linklokemail('filenames',expiry,emailfilter,'returnurl',iplock);
For example if we wish to allow users to download file1.zip and file2.exe with an expiry time of 1 hour, accept any email address with IP locking and then go to http://www.yoursite.com/index.htm then the function call will look like this:
You can add this anywhere between the <form> and </form> tags. In our example form it will look like this after adding the php tags:
<form name="form" method="get" action="demo.php">
<input type="text" name="name"><br>
<input type="text" name="email"><br>
<input type="submit" name="button1"><br>
When the page is loaded Linklok URL will add extra fields to the form dynamically to handle everything automatically. Don't worry as the user cannot change anything in the form as we use an MD5 hash to authenticate all of the special data fields which will detect any tempering.
When the user clicks submit Linklok URL will send an email to the user containing secure links to the two files and an email to you with the submitted form details.
I would very much appreciate if you could give me a hand with this.
- jeanettebmzAnswered on August 16, 2012 at 08:19 PM
I have read the explanation you've provided to us on this thread, I guess it was one of your developer.
Let me explain you that Jotform's philosophy is to keep things simple.
So there are things that cannot be accomplished by Jotform in your given scenario such as adding fields to the form dynamically after a submission has been taken place.. And some others can be easily accomplished, such as including a clickable link into an autoresponder or Thank You page,
Perhaps , Jotform might be useful for you while creating your form , but once you have it built, you would need to download its source code in order to make it to work the way you are looking for.
There are also ways to make any form hosted in our servers to pass URL parameters using PHP in order to insert them into a MySQL database and from there you would need to continue with a sort of programming.
Probably javierf or one of my colleagues might come with a solution, but I think a source code downloading might be involved in any case.
Saludos hasta Noruega!
- perreracAnswered on August 16, 2012 at 08:34 PM
Thank you for your answer. Downloading the source code might very well be the solution. Please allow me to wait for Javier or any other colleague of yours to see if they have something in mind that could do the trick.
Saludos para tí!
- javierfAnswered on August 17, 2012 at 11:59 AM
I read all the information and codes that you sent me and it seems very interesting and useful. Honestly i did not know that a business like this one that offered this service existed, regretfully what you ask of me is beyond my job as JotForm support because what you need is a detailed code editing of the form given that what your seeking to do is not what JotForm was thought and made for. If you download the source code with the link Jeanette sent you it is possible for you to do because JS has events in which you can make a function realize a number of things with the data before sending form.submit() that is a much as I can help you for now.
I will be here in case you have other questions or doubts.
Saludos amigo! :)
- khrisellAnswered on July 04, 2013 at 07:35 PMGreetings!We are happy to announce that we have released Jotform Webhooks, this feature would replace Send Post Data + Custom URL Thank You Page workaround in order to help you transfer forms data to your own database using your own script codes.
To know more about Jotform Webhooks, please click here.
Thank you for using JotForm. :)