Skip to content

1.0.3

Choose a tag to compare

@jschwind jschwind released this 11 Feb 12:14
· 14 commits to main since this release
5e31e50

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 onBeforeSubmit Callback
    Introduces a hook executed before the AJAX request is sent, with the ability to cancel submission by returning false.
    Enables custom validation, confirmation dialogs, or conditional logic before submitting.

  • New onAfterSubmit Callback
    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 an onError callback triggered when an AJAX request fails.
    Provides structured error handling and better control over failure scenarios.

  • Initialization Order Fix
    Corrects the this.id assignment 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