Using Loader.js
Transform any HTML form into a powerful, secure, and user-friendly experience with our enhanced JavaScript loader
Quick Start
Add this single line to your HTML to enable AJAX conversion, real-time validation, and security:
<script src="https://myformcapture.com/loader.js" data-client-id="your-domain-uuid"></script>
Important: Add data-mfc="true" to any form you want the loader to enhance.
AJAX Conversion
Automatically converts normal forms to AJAX with loading states and smooth UX
Real-time Validation
Instant field validation with elegant error messages and visual feedback
Security Protection
Built-in protection against XSS, SQL injection, and malicious content
Honeypot Protection
Dynamic honeypot fields to detect and block bot submissions
Success/Error Popups
Beautiful popups instead of redirects with form clearing on success
Form Data Persistence
Automatically save and restore form data to prevent data loss
Easy Integration
Works with any HTML form - no framework dependencies required
Loader Targeting Rules
The loader enhances a form only when data-mfc="true" is present on the form and any one of the following is true:
- The form's
class contains mfc_ (e.g., class="mfc_your-form-uuid").
- The form's
id starts with mfc_ (e.g., id="mfc_your-form-uuid").
- The form
action contains myformcapture.com.
- The form
action contains /api/v1/forms/ (for same-origin/app endpoints).
Add data-mfc="true" to opt-in explicitly, then match any one of the above for enhancement.