twig
Forum Replies Created
-
Hi. Many thanks for this. I have tried it but it does not work as required – it may be me doing something wrong.
I have added an action in my plugin class like this
add_filter("forminator_custom_form_submit_errors", array($this,"ForminatorPreSubmit"),10,3);
Then I have this.
function ForminatorPreSubmit($submit_errors, $form_id, $field_data_array) { /** Do form_id check and any validation code here **/ $submit_errors[] = "Stripy Tiger has detected an error"; return $submit_errors; }
This does stop the form submission, but the error displayed is
Error: Your form is not valid, please fix the errors!
And the form is then locked – so no changes can be made.
Many thanks for helping me.
I have looked at the forminator_custom_form_submit_before_set_fields action, and if I could cancel the submit at this point if the membership number is invalid, that would be great. Thank you
Forum: Plugins
In reply to: [Video Conferencing with Zoom] Conflict with ForminatorI have fixed by doing the following.
Forminator Moment is being loaded in the footer. This catches it, and de-queues it on single-meeting pages.function CheckMoment()
{
global $template;
$Tpl = basename($template) ;global $wp_scripts;
foreach( $wp_scripts->queue as $handle )
{
if ($handle == “forminator-custom-form-moment” && $Tpl == “single-meeting.php”)
{
wp_dequeue_script($handle);
}
}add_action(‘wp_footer’, ‘CheckMoment’);
I have tried this scenario in a different environment, and it is working. Must be a problem elsewhere.
Forum: Plugins
In reply to: [My Tickets - Accessible Event Ticketing] QR Code – url queryThanks for responding.
After creating the test entries, I moved the payments (from the Payments screen) into the bin. Then checked back on the post page. The Sold column then had -1.
I then restored the payments, the Sold column still had -1. Moving them back into the bin, changed the Sold column to -6
I have since reset to 0 by manually editing the _mt_registration_options record in the post_meta table for the posts.
Thanks