JavaScript Widget 3.0 - FAQs
Find answers to common questions about the JavaScript Widget 3.0.
General Questions
The widget is not validating my form fields. What could be wrong?
There are several common reasons for this:
- Make sure you've copied the entire JavaScript snippet correctly
- Check if your form fields have the correct attributes for auto-detection
- Verify that your app's API key is valid and has sufficient credits
- Ensure there are no JavaScript errors in your browser's console
How do I customize the validation messages?
You can customize validation messages in two ways:
Using App Configuration
Use the Feedback Messages option in the app configuration to set custom messages for different validation scenarios.
Using Hooks
Override messages using the hooks feature to implement custom logic and dynamic message generation.
Technical Questions
The widget is working but consuming too many credits. How can I optimize usage?
Consider these optimization strategies:
Usage Limits
Enable usage limits in the app settings to control validation frequency.
FormSubmit Mode
Use FormSubmit mode instead of AJAX for less frequent validations.
Custom Validation
Implement custom validation logic using hooks to prevent unnecessary API calls.
Timeout Settings
Set appropriate timeout values to prevent excessive validation attempts.
Can I use the widget with multiple forms on the same page?
Yes, the widget supports multiple forms on the same page. Here's what you need to know:
Each form should have unique field IDs or names to prevent conflicts.
Multiple Fields Option
Use the Multiple Fields option if your forms require different validation rules.
Credit Usage
Be mindful of API credit usage when validating multiple forms simultaneously.
Billing Questions
How are credits calculated for the JavaScript Widget?
Credits are calculated based on the following:
- One credit per email validation
- One credit per phone validation
- One credit per name validation
- Credits are only consumed for successful validations
What happens when I run out of credits?
When you run out of credits:
- The widget will continue to function but will not perform validations
- You'll receive a notification to purchase more credits
- Your existing forms will continue to work without validation