danidada
Forum Replies Created
-
Here, i change the sensitive data:
Here two screenshots: https://ibb.co/k089k6P, https://ibb.co/T4xLXd2
now the form shared on pastebin it’s set as “none” for expiration because it wasn’t updating the date, as you can see in the next screenshot the message has 23 as date but the datepicker is 20 (the old date)- This reply was modified 5 months ago by danidada.
Sorry for the late reply.
Based on your suggestion I edited the code with:
if( $val['field_array']['placeholder'] == 'antibot' ) {
and it didn’t work, nothing changed.
So I added in config.phpdefine( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true );
and changed the filter to:add_filter( ‘forminator_custom_form_submit_errors’, ‘check_form_data’, 99, 3 );
function check_form_data( $submit_errors, $form_id, $field_data_array ) {
? ? error_log( print_r( $field_data_array, true ) );
? ? return $submit_errors;
}but testing the form I see the validations error (leaving all fields blank) but no debug.log into wp-content folder. So my guess is that the filter is not firing.
It’s an ajax form if I missed to say that before. The filter is added in a mu-plugin visible from wp backend.thank you, I’ll wait for them.
thanks for your reply.
yes honeypot is turned on and hcaptcha is also integrated in the form but there’s still spam.
I can code so can you confirm how the filter works? Does it apply only to require fields? There’s another filter or hook I can use to add a custom validation for field? The form is submitted with ajax.
thanks again
Found the problem. It was due to an action hooked on ‘forminator_form_after_save_entry’ that added a <script> code …