Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add form validations and success message to contact form #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akshay0611
Copy link

Summary:
This PR enhances the contact form by adding client-side validations and a success message. The changes aim to improve the user experience by ensuring valid inputs and providing feedback upon successful submission.

Changes Made:

  • Added HTML5 validation attributes (pattern, minlength, maxlength) to enforce input constraints.
  • Included a success message that appears dynamically after form submission.
  • Implemented JavaScript to handle form validation, display the success message, and reset the form fields.

Testing:

  • Verified that all fields are validated correctly.
  • Tested responsiveness across different screen sizes.
  • Ensured alignment with existing CSS styles and framework conventions.

Related Issue:
Closes #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Form Validations and Success Message to Contact Form
1 participant