Like all embedded Jotform forms, you can prepopulate a Lightbox or Feedback form’s fields by adding the query parameters to the parent window’s URL.
For example:
https://jotformer.blogspot.com/2022/11/feedback-signup-form.html?name[first]=Jane&name[last]=Doe&email=jane.doe@jotform.com&interests=News,Health,Sports
You can also prepopulate the fields by inserting iframeParameters
inside JotformFeedback
. For example, the iframeParameters
section in the Lightbox embed code below prepopulates the Name, Email, and Interests fields on this form:
<script src ="https://form.jotform.com/static/feedback2.js" type="text/javascript"></script>
<script type="text/javascript">
var JFL_223072173120441 = new JotformFeedback({
iframeParameters: {
name: {
first:'Jane',
last:'Doe'
},
email:'jane.doe@jotform.com',
interests:'News,Health,Sports'
},
formId: '223072173120441',
base: 'https://form.jotform.com/',
windowTitle: 'Signup Form',
background: '#FFA500',
fontColor: '#FFFFFF',
type: '0',
height: 500,
width: 700,
openOnLoad: true
});
</script>
The parameters are in key-value pairs where “key” is the field’s unique name and “value” is what to prepopulate the field with.
See also: Prepopulating Fields to Your Jotform via URL Parameters
Send Comment:
33 Comments:
More than a year ago
I have developed windows form (VB 2012), i wonder if I could use this plugin to directly upload into Wordpress..
More than a year ago
I use a lightbox and fill in the data with iframeParameters. But this does not work well for me with "Continue forms latter - Enaeble". My data is being overwritten. How to make my data priority.
More than a year ago
ps: the issue I am facing is the lightbox not opening
More than a year ago
I tried to combine the lightbox with adding a parameter. But could not tell why I remain unable to get the combination going. Both solutions work well if run separately. Could I ask you for your support?
More than a year ago
Unable to log into jotform account from Wordpress icon - keeps saying sign in successful, but does not sign me in
More than a year ago
Hello!!! Welcome to the web world!!
More than a year ago
Not working with Wordpress 4.2.2
The jotform icon appears in the editor but it isn't functional
More than a year ago
Are you guys aware this plugin doesn't work with the latest version of wordpress?
I've tried embedding a form from Safari, Firefox and Chrome and the selection windows never disappears and no shortcode (or anything otherwise) is embedded into the wordpress content editor.
More than a year ago
any plugin for wordpress.com ??
More than a year ago
Its very great.
More than a year ago
Hi: I do not get the list of forms as it is shown in the screen shot. I can either embed the script or try to use a short code. Neither of which work. I'm working with Wp v3.9.1 and v1 of your plugin. Thanks for any help!
More than a year ago
it does not send the message of the form to my email.please help.
I am using word press
More than a year ago
What parameter i should use if i don't want close button in this feedvback.
More than a year ago
if i wanted to say add this blog to my website i have it added now where it sends the form information i wanted it to be posted on the same website how would i do this?
More than a year ago
The plugin doesn't seem to work in my wordpress 3.7.1 version. I can see the button, but clicking doe nothing
More than a year ago
OK scratch that, as I have tried it in Chrome and not Firefox where a window did pop up for sign in to my Jotform account. I couldn't see anywhere in your instructions that I would get this.
Thanks
Jim..
More than a year ago
Hi
Am I missing something? I have installed the plug in, and yes see the button in the page editor. Clicking on it does nothing. I can't see how it would know what my Jotform account is to bring me back a list of forms to use, so where do I set that up?.
Help!
Thanks
Jim..
More than a year ago
Error: Warning: preg_match(): Compilation failed: unrecognized character after (?< at offset 18 in /misc/2/000/232/468/1/user/web/4star.zcsassociates.com/wp-content/plugins/embed-form/jotform-wp-embed.php on line 42
More than a year ago
Oops, guess it was released a little too soon. the plugin is broken. Installed, pencil icon appears. Clicking it does nothing. Not the only one having this issue.
More than a year ago
That is pretty fantastic! Thank you.
More than a year ago
Merhaba ben bu eklentiyi kurdum, ancak çalışmadı. aşağıdaki linkteki gibi jotfoem id gözüküyor.
More than a year ago
Finally!
More than a year ago
Scratch that - Sorry..
Great plugin!...
More than a year ago
Hi
Just installed plugin.
Can't seem to put two forms on one page.
Is that right?
More than a year ago
Great job on the new WordPress plugin, you guys rock!
More than a year ago
By using the above and with a little php I populated a hidden field on my form with the page URL. This way I know for which article I receive the feedback.
PHP Function to get the page url:
function curPageURL() {
$pageURL = 'http';
// if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
Put it in a variable:
$curURL = curPageURL();
Paste a little jscript:
echo('<script type="text/javascript" />');
Add the form populating the hidden field "url" with the page url:
new JotformFeedback({
formId:'#########',
base:'',
windowTitle:'Επικοινωνία',
iframeParameters: {
'url': myUrl
},
background:'#FFA500',
fontColor:'#FFFFFF',
type:false,
height:500,
width:700
});
The src for the form has to be feedback and not feedback2 src
More than a year ago
I am trying to add a parameter but doesn't seem to work
My form element
input type="text" class="form-textbox" id="input_6" name="q6_test" size="20"
More than a year ago
So the steps for this seems to work when the script is sourced with https://www.jotform.com/min/g=feedback, but not when sourced with https://www.jotform.com/min/g=feedback2. I'm guessing this is a new version of the script, but does not support the iframeparameters.
More than a year ago
Doesn't work for me. No url shows up in the email. Form is located on
More than a year ago
what if we need to define more than one variable?
More than a year ago
Just what I needed! Thank you.
More than a year ago
This is really nice web site
More than a year ago
como criar um formulário que o usuário colocar o anúncio com visualização no site direto cem precisar de usar e-mail desde já
obrigado