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:
I have developed windows form (VB 2012), i wonder if I could use this plugin to directly upload into Wordpress..
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.
ps: the issue I am facing is the lightbox not opening
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?
Unable to log into jotform account from Wordpress icon - keeps saying sign in successful, but does not sign me in
Hello!!! Welcome to the web world!!
Not working with Wordpress 4.2.2
The jotform icon appears in the editor but it isn't functional
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.
any plugin for wordpress.com ??
Its very great.
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!
it does not send the message of the form to my email.please help.
I am using word press
What parameter i should use if i don't want close button in this feedvback.
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?
The plugin doesn't seem to work in my wordpress 3.7.1 version. I can see the button, but clicking doe nothing
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..
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..
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
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.
That is pretty fantastic! Thank you.
Merhaba ben bu eklentiyi kurdum, ancak çalışmadı. aşağıdaki linkteki gibi jotfoem id gözüküyor.
Finally!
Scratch that - Sorry..
Great plugin!...
Hi
Just installed plugin.
Can't seem to put two forms on one page.
Is that right?
Great job on the new WordPress plugin, you guys rock!
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('');
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
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"
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.
Doesn't work for me. No url shows up in the email. Form is located on
what if we need to define more than one variable?
Just what I needed! Thank you.
This is really nice web site
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