1.0.3
Release 1.0.3 – Changelog Summary
This release enhances extensibility and reliability of AvalynxForm by introducing new lifecycle callbacks and improving error handling. It gives developers finer control over form submission flow while maintaining full backward compatibility.
-
New
onBeforeSubmitCallback
Introduces a hook executed before the AJAX request is sent, with the ability to cancel submission by returningfalse.
Enables custom validation, confirmation dialogs, or conditional logic before submitting. -
New
onAfterSubmitCallback
Adds a post-submission hook that runs after the request completes (success or failure).
Ideal for cleanup tasks, UI updates, analytics tracking, or resetting form state. -
Improved AJAX Error Handling
Adds support for anonErrorcallback triggered when an AJAX request fails.
Provides structured error handling and better control over failure scenarios. -
Initialization Order Fix
Corrects thethis.idassignment order during initialization.
Prevents potential edge cases and ensures stable form setup. -
Documentation & Metadata Updates
Updated README examples, CDN references, and repository metadata.
Ensures clarity, accurate usage instructions, and improved developer onboarding. -
Development Example Adjustments
Example files now reference the local source script for development.
Simplifies testing and contribution workflows.
Compatibility: Backward compatible
Full Changelog: 1.0.2...1.0.3