SureForms
If you use SureForms for contact and other forms, Shield can add its CAPTCHA widget and JavaScript check to the SureForms forms you choose, and check them when a form is submitted.
What it does
For each SureForms form that is in scope, Shield:
- Adds your CAPTCHA widget just above the form’s submit button. For forms with an inline submit button, it adds the widget after the form fields instead.
- Adds the hidden JavaScript check (if you’ve turned the JavaScript presence check on).
- Checks both when the form is submitted, and blocks the submission if either fails. The visitor sees the error in the form.
- Records failures in the event log.
Forms that aren’t in scope are left alone and submit as before.
Before you start
- Choose and set up a CAPTCHA provider (see “Choose a CAPTCHA provider”). With no provider selected, and the JavaScript check off, the integration has nothing to check.
- Make sure Shield’s main protection switch is on.
- Make sure SureForms is installed and active. The SureForms tile on the Integrations tab shows Installed or Not installed, and the switch is greyed out if SureForms isn’t found.
Turn it on
- Go to Settings → Login Shield → Integrations tab and find the Form plugin integration section.
- On the SureForms tile, tick Enable.
- A box titled SureForms: which forms appears below the tiles. Choose:
- All forms, to protect every SureForms form on the site, including forms you create later.
- Only these forms, then tick the forms you want from the list.
- Click Save integration settings.
The “which forms” box only appears when SureForms is installed, and it is hidden while the SureForms switch is off.

The form list
With Only these forms, the list shows each SureForms form with its title and ID number. Forms that aren’t published show their status (draft or private). Each row has an Edit link that opens the form in a new tab. The list shows up to 200 forms, alphabetically.
If you choose Only these forms and tick nothing, no forms are protected. If you create a new form later, it stays unprotected until you tick it.
What visitors see
Visitors see the CAPTCHA widget just above the submit button. Depending on your provider, they tick a box, wait for a short check, or see nothing at all. Invisible providers such as reCAPTCHA v3 and invisible Turnstile get a fresh token in the background while the page is open, so nobody has to wait when they press submit.
If the check fails, SureForms shows Shield’s message in its normal error area:
- “Security check failed. Please try again.”
- “Please complete the security check.”
- “JavaScript verification failed. Please enable JavaScript and try again.”
- “Security check expired. Please reload the page and try again.”
How it works
Shield uses the hooks that SureForms provides: it prints the widget as part of the form when the page is built, and it adds its check to SureForms’ extra-restriction step when the form is submitted. Nothing is injected after the page loads, so it also works for forms in popups or tabs, as long as the form is built by SureForms.
Shield loads its widget files only on pages that contain a protected form.
What gets logged
Failures appear in the Log tab as Captcha fail, with the form named in the Info column, for example “SureForms #42 — JS check failed”. These entries record the IP address but no username.
CAPTCHA provider notes
- If the provider’s server can’t be reached, Shield lets the submission through rather than blocking real visitors. See “What happens if a provider goes down”.
- SureForms has its own spam protection settings (CAPTCHA options and a honeypot). Use Shield’s or SureForms’ CAPTCHA on a form, not both, or visitors may be asked twice.
Testing a form
- Open a page with a SureForms form in a private window. The widget should appear above the submit button.
- Submit the form normally. It should go through.
- Submit it without completing the widget, or with JavaScript off. It should be blocked with an error.
- Check the Log tab for a “Captcha fail” entry with the form’s ID.
- Open a form you left out of scope, if any. It should have no widget.
For developers
To decide in code whether a form is protected, use the nahnls_sureforms_form_enabled filter. It receives whether the form is in scope and the SureForms form (post) ID. It applies when the scope is Only these forms. See “Actions and filters”.
Troubleshooting
- No widget on a form. Check that the SureForms switch is on and saved, that the form is ticked (if you chose Only these forms), that a CAPTCHA provider is selected and that Shield’s main switch is on. Clear page and optimisation caches.
- The widget shows but every submission fails. Check the browser console for script errors, and that your CAPTCHA keys match this domain. Test with a different provider.
- “Security check expired” errors. The page was cached for longer than the form’s security token lasts (24 hours by default). Shield refreshes it when JavaScript runs, so make sure it isn’t blocked or delayed. See “Caching and login pages”.
- The widget is the wrong width or alignment. It sits in its own block, aligned to the start edge. Adjust it with your own CSS.
- I added a new form and it isn’t protected. You’re in Only these forms mode. Tick the form and save.
- Spam still arrives. A CAPTCHA reduces bot spam but doesn’t stop humans. Add other spam filters.
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!