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

Validate and Alert Users for Empty Form Submissions #463

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

amantaphelix
Copy link
Contributor

Fixes #444

Type of change

This pull request adds validation to notify users when they attempt to submit an empty form. The following changes were made:

Implemented a check in the handleEmailSubmit function to validate required fields.
Added validation in the handleSaveToDB function to ensure no required fields are left empty.
Displayed alert messages to inform users of missing required fields.
Please mark with an X the type that applies:

  • [X ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactor code
  • Documentation update
  • Other (mentioned in the issue number)

Checklist

Please mark with an X the items that apply:

  • [X ] My code follows the style guidelines of this project
  • [X ] I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link

vercel bot commented Jul 27, 2024

@amantaphelix is attempting to deploy a commit to the vansh69's projects Team on Vercel.

A member of the Team first needs to authorize it.

@hustlerZzZ hustlerZzZ added gssoc This label is attached to the issues related to Gssoc'24 level2 labels Jul 30, 2024
@hustlerZzZ hustlerZzZ merged commit 9606082 into VanshKing30:main Jul 30, 2024
1 of 2 checks passed
Copy link

Congratulations, Your pull request has been successfully merged 🥳🎉 Thank you for your contribution to the project 🚀 Keep Contributing!! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc This label is attached to the issues related to Gssoc'24 level2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG:Validating and alerting users when submitting an empty CONTACT US form.
2 participants