Skip to content

Conversation

@Paroksh1
Copy link

addressing issue #188.

What’s Included:

Validates the following fields:

Full Name: must not be empty
Email: must not be empty and must be in valid format
Phone: must not be empty and should have at least 10 digits
Message: must not be empty
Displays specific error messages next to each field
Prevents form submission until all fields are valid
Clears a field’s error message as soon as the user begins correcting it
This update improves user experience and ensures valid data is submitted to the backend.

Fixes: #188

Type of change
New feature — non-breaking change that adds validation functionality to an existing form.

Test Configuration
Firmware version: Not applicable
Hardware: Tested locally on macOS
Toolchain: Node.js, Next.js
SDK: Web3Forms

Checklist

Code follows the style guidelines of this project
Performed self-review and tested in the browser
Errors clear in real-time and form blocks invalid submission
No new warnings or breaking changes
No changes required in documentation
No additional dependencies introduced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: In progress

Development

Successfully merging this pull request may close these issues.

Add Form Validation to "Send Us Message" Form on Landing Page

1 participant