Hi l4gen,
The problem you have is actually very interesting since it could become a feature. The code you are trying to implement can’t actually work since we also changed filenames (to prevent colision). Here are the correct paths to use in your code:
require_once(ABSPATH . ‘wp-content/plugins/contactic/CTC_FormIterator.php’);
$exp = new CTC_FormIterator();
Thread Starter
l4gen
(@l4gen)
Hi Contactic
the solution you wrote is exactly the one I tried.
I’ll give it another chance, maybe I mistyped anything.
Thank you so much
Thread Starter
l4gen
(@l4gen)
I contactic
I’ve tried again but still goes on loop.
🙁
Thank You
Got it. Can you please paste here the exact code you are trying to run ?
Thread Starter
l4gen
(@l4gen)
Hi contactic, here it is…hope it helps.
Thank you
L
P.s.
The code before the one that I attached before is the same from https://cfdbplugin.com/?page_id=904 except than this 2 line tha I adapted to my form.
Please also note that the code from CFDB for prevent double submission is full working.
…
$formName = ‘*’; // Change to name of the form containing this field
$fieldName = ‘tua-email’; // Change to your form’s unique field name
….
/* modified CFDB*/
function is_already_submitted($formName, $fieldName, $fieldValue) {
require_once(ABSPATH . ‘wp-content/plugins/contactic/CTC_FormIterator.php’);
$exp = new CTC_FormIterator();
$exp = new CTC_FormIterator();
$atts = array();
$atts[‘show’] = $fieldName;
$atts[‘filter’] = “$fieldName=$fieldValue”;
$atts[‘unbuffered’] = ‘true’;
$exp->export($formName, $atts);
$found = false;
while ($row = $exp->nextRow()) {
$found = true;
}
return $found;
}
Hi,
thank you very much, it helps, we found an error on our side, we will release 1.3.0 later today, and it should work fine (tested here with success).
Regards.
Hello,
1.3.1 is now available, I mark this as resolved please let us know if you have any other question or problem.
Thread Starter
l4gen
(@l4gen)
Hello francois86
Thank you so much. I’ll test it asap and I’ll keep you in touch.
L
Hi @l4gen!
Did you find a solution for duplicated email submissions?
Thank you!