Invisible Captcha
Invisible mode verifies users without any visible challenge. The captcha runs automatically when the form is submitted.
Setup
Add data-mode="invisible" to the widget and use the data-callback attribute:
HTML
<script src="https://api.sloxly.com/v1/Captcha/api.js"></script> <form id="myForm" method="POST"> <input type="email" name="email" required> <div class="sloxly-captcha" data-sitekey="YOUR_KEY" data-mode="invisible" data-callback="onCaptchaDone"></div> <button type="submit">Submit</button> </form> <script> function onCaptchaDone(token) { document.getElementById('myForm').submit(); } </script>
How It Works
- User clicks "Submit" — the captcha intercepts the submission
- Captcha runs a background verification (no UI visible)
- On success, your callback function is called with the token
- Submit the form with the token included automatically
Invisible mode still requires server-side verification. The flow is identical; only the user experience changes.
When to Use
- Login forms where UX is critical
- Sign-up flows to reduce friction
- Contact forms on marketing pages
- Any form where a visible checkbox feels intrusive