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.
Can I prepopulate a field in edit mode?Asked by jfleischauer on January 29, 2015 at 12:23 AM
I'm working on an approval form, and I'd like to be able to control access to the approval part of the form based on the value of a hidden radio button field, with options for "Is Approver" or "Is Not Approver". I'd like to allow users to edit their submissions, so my thought is to pass the value of that field via URL parameters, and put those links in the various emails (i.e. have an edit link for the user that passes "Is Not Approver" and one for the approver that passes "Is Approver"). The value of that field would then hide or show the approver fields fields as appropriate.
My issue is that I can't figure out how to pass a URL parameter when editing a submission, only when creating a new submission. Is this even possible?
edit mode Emails Submissions radio button field edit link
Unfortunately it is not possible to pass URL parameters with edit link. Even if you construct your own edit link and add pass URL parameters, the data will not be populated in your form fields.
There is one another way to achieve your requirement. You should password protect your form section which is for "Approver" user. You may like to take a look at the following thread where I have explained this in detail: http://www.jotform.com/answers/401633
Hope this answers your query.
Do get back to us if you have any questions.
I've looked at that solution, and the problem I'm running into is I want to allow the user to be able to edit the form after they submit it. With that solution, though, the access key is saved with the rest of the form, leaving the Approver section available for the user if they edit it after it has been reviewed. Is there any workaround for that?
I can understand that problem but I am unable to think any workaround to solve this issue. The input data of form fields will always be captured.
We can try some workaround with "Hidden Box" widget or hidden text box but before that we need to find out who will be the approver. Are you or admin who has access to your form's submission page will approve the user submission?
Do get back to us on this and if possible we will try to figure out the workaround.
We will wait for your response.
To answer your question, we have several people who may be approvers, but not all have access to the submission page.
One thought that I had was whether it might be possible to clear that field on save, maybe using a script. Any thoughts on that?
Yes, that would be possible. I have altered my sample created here: http://www.jotform.com/answers/500138 to match this.
You can see the jotform with this here: http://form.jotformpro.com/form/50286472718966
ContractID (password field) is staff123
Do let us know if that is something that you are after.
That did exactly what I need. Thanks!
That is great to hear :)
Do let us know if you have any further questions and we would be happy to assist.