If someone manages to use this plugin still, and needs this topic – I fixed this with AJAX, by creating a separate, blank page that holds a blank form, using the ajax to pass the email into the form. I had to store the name and email in data-
attributes in the html.
script:
$(".modal-trigger").on("click", function(){
var value = $(this).attr('data-email');
var name = $(this).attr('data-name');
$.ajax({ url: '/contact-form.php',
data: {email: value},
type: 'post',
success: function(output) {
$("#contact-name").text("email " + name);
$("#contact-form").html(output);
}
});
});
and the contact.php itself just used
echo do_shortcode("[si-contact-form form=1 email_to='".$_POST['email']."']");
-
This reply was modified 7 years, 4 months ago by schnoodle.