• Resolved drahcir1976

    (@rjmdavies)


    Hi. I’m sorry if this has been asked before but I couldn’t find the answer using the search function. The FAQ section suggests that if Gravity Forms Zero Spam identifies a spam entry it will show the default wording “Thanks for contacting us! We will get in touch with you shortly” upon submission and NOT redirect the suspected bot/spammer to a thank you page or similar. Am I reading this correctly? Is there a I can test this behaviour? Can I mimic a bot somehow? I ask as I’m up our analytics tracking and don’t want to count spam entries. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    You’re reading it correctly. When an entry is flagged as spam, Gravity Forms throws out the form’s configured confirmation (whether that’s a redirect to a thank you page, a redirect URL, or a custom message) and shows the default “Thanks for contacting us! We will get in touch with you shortly.” message inline on the form page instead.

    There is no redirect, so a suspected bot never reaches your thank you page and your analytics stay clean.

    This is enforced by Gravity Forms itself (not specifically Zero Spam), so it applies to any entry marked as spam regardless of what caught it (honeypot, Zero Spam, Akismet, etc.).

    Note: Gravity Forms 2.10+ added a “Custom Spam Confirmation” toggle under Form Settings > Spam that lets you configure a separate confirmation specifically for spam entries if you ever want one. Leaving it off keeps the default-message behavior above.

    To test it, here are two easy options:

    1. Disable JavaScript in your browser, then submit the form. Zero Spam adds the spam prevention token via JavaScript at submit time, so without JS the submission will be flagged as spam. You should see the default confirmation message appear on the same page instead of being redirected, and the entry will land in Forms > Entries > Spam.
    2. Temporarily force every submission to be marked as spam by adding this snippet (via a code snippets plugin or your theme’s functions.php):
    add_filter( 'gform_entry_is_spam', '__return_true' );
    

    Submit the form normally, confirm the default message appears inline instead of a redirect to your thank you page, then remove the snippet.

    Hope that helps!

    Thread Starter drahcir1976

    (@rjmdavies)

    Hi. Thanks for this. Particularly the explanation of how I can test it. Really helpful.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.