I’m a developer adding hardcode for a client site. I’m looking to have a simple newsletter popup form that first asks for the user’s email, and then the user selects “Subscribe”, and then a modal pops up with another form (a Pardot form) asking some more questions, where the email is pre-populated.
And then what will happen is the user will click “Subscribe” and a Pardot form will pop up with the email they entered already populated. I’m a little confused because I’m not quite sure how to integrate both so that the email will pre-populate on the Pardot form.
You can use JavaScript code for it. In the below code, replace <pardot-form-id> with the ID of Pardot form HTML element where you want to copy the email. This code should be copied to the “custom code” section of the Webflow page settings.
$("#test").click(function(){
var email = $("#Email-Footer-2").val();
$("#<pardot-form-id>").val(email);
});