JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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 we pre-populate our form that is embedded within a wordpress page using URL parameters?Asked by iStore on June 09, 2016 at 01:56 PM
Can we pre-populate our form that is embedded within a wordpress page that requires login using URL parameters? Or can we only pre-populate using URL parameters directly to http://form.jotform.com/xxxx?
If not, do you have any suggestions on how we can accomplish this?
Yes, prepopulating an embedded form is possible. Use this app to prepopulate the field(s): http://prepopulate.jotform.io/. Copy the parameters and paste in your WordPress website where the form is placed.
If there are issues, let us know here and share with us your WordPress page so we can check.
I don't think I communicated that very well. The form is embedded within a secure (login required) wordpress page using the jotform wordpress plugin using [jotform id="xxxxxxx"]. We will have many users (50-100 users) each with different logins and each would need the form populated using their contact information each time they access the form via a custom link. So basically when user clicks on link, it takes them to the web page but prompts for login. Then after login, the embedded form shows with their contact information fields already populated. Is this possible? If not, do you have any suggestions on another way to accomplish the same goal of the user not having to repetitively enter their contact info for every form submission?
Unfortunately your requirement is not possible to achieve. However, I believe a possible workaround I can suggest would be to use sessions in your wordpress page. When the link is clicked, you can store the url parameters in a session. Then after the user logs in to the page, you can then add that session to the link of the page where the form is embedded. That way, the form will be pre-populated with the data. Here's a plugin that may help: https://wordpress.org/plugins/wp-native-php-sessions/
Another possible workaround would be to redirect the user back to the prepopulation link after they login, then automatically direct the link to the webpage where the form is embedded.
Hope this helps. Please let us know if you need further assistance.