Back





This is an example of the AvalynxForm. It is a simple form with some fields and simulates a slow response. The form validation is fetched from a PHP script.



Source of exampleCopy to clipboard


document.addEventListener('DOMContentLoaded', () => {
    const form = new AvalynxForm('form_validation', {
        apiParams: {key1: 'value1', key2: 'value2'},
        onSuccess: (response) => {
            alert('Validation successful');
        },
        onError: (response) => {
            console.log('Form submission failed:', response);
        }
    });
});
	
AvalynxForm on GitHub Avalynx on GitHub