Hi all
Problem:
We regularly receive duplicate registrations, orders, etc. via our formidable forms.
Solution: (which doesn't work 100%)
After some research we found a code to prevent this. For example:
add_filter('frm_time_to_check_duplicates', 'change_duplicate_time_limit_one_form', 10, 2); function change_duplicate_time_limit_one_form( $time_limit, $entry_values ) { if ( $entry_values['form_id'] == 100 ) { //change 100 to your form ID $time_limit = 31536000; } return $time_limit; }
However, we still sometimes receive some duplicate entries.
But the biggest problem is that this code is always visible somewhere on our web pages.
They are somewhere on top, bottom or in the middle of a page.
How can we avoid the code being displayed on a page but still running?
Are there better alternatives to solve this problem?
PS: What kind of code is this? PHP? Javascript? ...
Best regards
Jeroen
Where did you place the code? PHP code should never display on the front end. You've done something wrong.
PHP code needs to be placed in functions.php, a code snippet plugin, or a custom PHP library of your own design. PHP executes on the server. It never shows on the front end unless you've written out as text.
To add to Victor's comment: see https://formidableforms.com/knowledgebase/formidable-hooks/#kb-where-to-put-the-code
Please login or Register to submit your answer