Thank you.
]]>For testing purposes, we’ve modified the plugin file class-form.php, but this is not viable as we, of course, wish to ensure we can update the plugin to get our latest and always recent pathces/fixes and enhancements.
Is there somewhere in the plugin we can set this, or is this an option which could be included in a future (not too far away) update? Alternatively, somehow, make sure the set slug for the form is inserted into the generated form code as “id=[slug]”? The currently generated code has a data-id, but not any id inserted in the generated/parsed code, as far as we can see.
Thanks again, for an amazing plugin!
]]>I would like to track how many times a form has been submitted with Google Analytics (GA4).
I have managed to do this for the contact form on the contact page, but I also want to track the forms created by this plugin.
For the “standard” contact form I found some PHP code to add to the functions.php in the child theme.
Does someone know if this is also possible for the Download after Email forms? The key is to add a form ID to the submit button.
Your help will be highly appreciated!
]]>First of all, I would like to commend you on the excellent and user-friendly WordPress plugin “Email download link.” It has been helpful for us so far!
We are using the plugin to track our forms with a CMS tool. However, we have encountered a small issue: Every time a form is submitted, a new ID is generated, resulting in a new form registration. Is there a way to maintain a fixed ID? I might have overlooked a setting, so I’m reaching out to you for assistance.
Thank you in advance for your support!
]]>Testing signups with unique usernames and emails, the user info is pushed to MailChimp but there are no subscriber tags. I’m wondering what I am missing here:
add_filter('mc4wp_integration_custom_subscriber_data', function (MC4WP_MailChimp_Subscriber $subscriber, $form_id) {
if ($form_id == 250328) {
$subscriber->tags[] = 'Tag1';
} else if ($form_id == 250329) {
$subscriber->tags[] = 'Tag2';
}
return $subscriber;
}, 10, 2);
]]>add_filter('mc4wp_integration_subscriber_data', function (MC4WP_MailChimp_Subscriber $subscriber, $hf_form) {
if ($hf_form->form_id == 250328) {
$subscriber->tags[] = 'Tag 1';
} else if ($hf_form->form_id == 250329) {
$subscriber->tags[] = 'Tag 2';
}
return $subscriber;
}, 10, 2);
]]>When importing on the new site all forms’ Form ID changed. This is not good since each form now has lost “connection” to the page where the original Form ID was used to get the form inserted.
Can I change the Form IDs on my imported forms so the forms show up on the correct pages again?
I have too many pages and too many forms to manually go through entire site and find and change the Form ID shortcodes.
]]>if ( ! is_admin() ) { // phpcs:ignore
if( $form->id === 4 ){ // phpcs:ignore
if ( $_POST ) { // phpcs:ignore
require 'fpdf.php';
$coursename = $_POST['item_meta'][32]; // phpcs:ignore
$name = $_POST['item_meta'][36]; // phpcs:ignore
$doc = date( "m/d/Y" ); // phpcs:ignore
$pdf = new FPDF();
$pdf->AddPage( 'L' );
$pdf->Image( 'wp-content/themes/mwp/fpdf/Yalicert.jpg', 0, 0, 300, 210, 'JPG' );
$pdf->SetFont( 'Arial', 'B', 15 );
$pdf->Cell( 0, 170, $coursename, 100, 1, 'C' );
$pdf->SetX( 55 );
$pdf->Cell( 0, -15, $doc, 0, 1, 'L' );
$pdf->Cell( 0, -50, $name, 0, 0, 'C' );
$pdf->Output();
}
} elseif( $form->id === 3 ) { // phpcs:ignore
if ( $_POST ) { // phpcs:ignore
require 'fpdf.php';
$coursename = $_POST['item_meta'][7]; // phpcs:ignore
$name = $_POST['item_meta'][10]; // phpcs:ignore
$doc = 'Gre'; // phpcs:ignore
$pdf = new FPDF();
$pdf->AddPage( 'L' );
$pdf->Image( 'wp-content/themes/mwp/fpdf/Yalicert.jpg', 0, 0, 300, 210, 'JPG' );
$pdf->SetFont( 'Arial', 'B', 15 );
$pdf->Cell( 0, 170, $coursename, 100, 1, 'C' );
$pdf->SetX( 55 );
$pdf->Cell( 0, -15, $doc, 0, 1, 'L' );
$pdf->Cell( 0, -50, $name, 0, 0, 'C' );
$pdf->Output();
}
} if( $form->id === 2 ) { // phpcs:ignore
if ( $_POST ) { // phpcs:ignore
require 'fpdf.php';
$coursename = $_POST['item_meta'][20]; // phpcs:ignore
$name = $_POST['item_meta'][23]; // phpcs:ignore
$doc = 'Port'; // phpcs:ignore
$pdf = new FPDF();
$pdf->AddPage( 'L' );
$pdf->Image( 'wp-content/themes/mwp/fpdf/Yalicert.jpg', 0, 0, 300, 210, 'JPG' );
$pdf->SetFont( 'Arial', 'B', 15 );
$pdf->Cell( 0, 170, $coursename, 100, 1, 'C' );
$pdf->SetX( 55 );
$pdf->Cell( 0, -15, $doc, 0, 1, 'L' );
$pdf->Cell( 0, -50, $name, 0, 0, 'C' );
$pdf->Output();
}
}
}
]]>