matfr
Forum Replies Created
-
Thank you very much !
-Mat
Hello,
Thank you for your reply, I will try to code something with that then.
Mat.
Hello,
I would like to share my custom code with you no problem but not on the forum, is there a way I can send the code to you via e-mail or another way ?
Thank you,
Mat.
I have also tried just :
if ( ! defined( 'ABSPATH' ) ) { exit; } elseif ( defined( 'WP_CLI' ) && WP_CLI ) { return; } add_action('forminator_form_after_handle_submit','generation_proforma', 10, 2 ); function generation_proforma($form_id, $response) { //my custom code }But that doesn’t work either… I have in my code 2 database querries that fetch the data of the form submitted, does this ‘forminator_form_after_handle_submit’ wait for the full data of the form to be sent to the database ?
Hello,
Do you have any update on this ?
Thanks.
Hello,
I have put the code in a mu plugin but it doesn’t appear to work now ( my code works in a seperate php file so it’s not my code ), I have tried :
if ( ! defined( 'ABSPATH' ) ) { exit; } elseif ( defined( 'WP_CLI' ) && WP_CLI ) { return; } add_action('forminator_form_after_handle_submit','generation_proforma', 10, 2 ); function generation_proforma($form_id, $response) { if ($response['success']){ if ($form_id == 4323){ //my custom code }}else { }}Or do I need to fetch $form_id and $response in another way ?
Thanks !
- This reply was modified 4 years, 2 months ago by matfr.
This worked nicely !
Thank you for your time and effort 🙂
Sincerely,
Mat.
Thank you for your reply Patrick,
I have tried your solution by creating a new mu plugin and activating it,
unfortunately it didn’t work as clicking the send button multiple times sent multiple emails and payments still…
I hope you have another fix to suggest.
Mat
Thank you for your reply,
I will wait for a fix !
Sincerely,
Mat.
Here is the form : https://ufile.io/lknkpva3
And I want to point out again that this form is sent when the user is not yet registered, it is the registering form. I hope you can find why the uploaded files do not appear in the mail.
Thank you.
Edit : In the register form the uploaded files don’t appear but I have another form after being logged in which has the uploaded files in the mail.
So is it because the form is sent when the user is not registered yet ?
Okay I’ll do that while I wait for the fix !
Thank you !
Hello, thank you for your reply, here is the form :
I already set the conditional logic for the password field so I don’t know why it does that…
Thank you for your quick reply !