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.
How do I allow Joomla registered users to edit their submission using Submission ID?Asked by cedaradvisors on August 06, 2015 at 02:08 AM
I have created a form for current clients to provide their current situation details. I'd like to allow them to create a username and password on my Joomla 2.5 website and access the form as a registered user. Since I only want current clients to access the form, I can open the form, input their names, submit the form, and get the Submission ID for a specific client.
I can then send the clients the Edit Submission link so that they can complete the form. There is a "Is the questionnaire complete (yes/No)" question at the end of the form, with a default answer = "no". I added a "save form" button at the beginning of the questionnaire to allow clients to save the form and continue at a later date, using the Edit Submission link. When they are done, they answer "Yes" to the "is the questionnaire complete" and receive an Auto Responder message.
This approach works, but I would like to be able to enable client to have a Joomla user name and password as an extra layer of security.
I'm assuming that for this to work I need to associate a Joomla registered user with the Submission ID. I've got the form working using the Jincludes method. Any suggestions? One potential solution is to have the client enter their username, password, and submission ID, and then build the form edit URL based on that info.
I'm not sure if this is possible with JotForm, because:
1. The submission ID is unique per submission, and is assigned by our system. In order to have it in your database, a submission would already need to be created beforehand - as you are doing manually now.
2. We do not allow collecting of usernames or passwords over our forms, as can be seen in our terms. So you would have to ask for this information with your own system.
What I believe you can do on your website, is to put a page with your form embedded into it behind a login page. Then, serve them different form embedded with submission ID depending on their login credentials on your site. Everything else would be as you have it right now - you need to pre-create submissions that your users can then fill out with their edit link.
I hope this helps.
Boris, we agree on the approach and requirements.
I have minimal coding skills, but found this link: http://stackoverflow.com/questions/11811782/form-value-creates-a-url
I modified the code as follows, and it seems to work. There is no error handling, though. I'm open to other suggestions.
var url= "http://submit.jotform.us/form.php?formID=52025303403135&sid=" +
document.getElementById("url").value + "&mode=edit";
<form onSubmit="return process();">
Client ID: <input type="text" name="url" id="url"> <input type="submit" value="go">
The above approach appears okay, you should perhaps add a check for blank user id i.e
if(document.getElementById("url").value == "")