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

added name and message validations #1438

Merged
merged 3 commits into from
Feb 8, 2023
Merged

Conversation

chencc33
Copy link
Member

@chencc33 chencc33 commented Jan 24, 2023

Fixes #1335

  • Up to date with dev branch
  • Branch name follows guidelines
  • All PR Status checks are successful
  • Peer reviewed and approved

Any questions? See the getting started guide

@chencc33 chencc33 requested a review from edwinjue January 24, 2023 03:20
|| formValues.message.trim().length > 1000;
if (!noFirstName && !noLastName && !notValidFirstName && !notValidLastName
&& !noEmail && !incompleteEmail
&& !noMessage && invalidMessageLength) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be !invalidMessageLength?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I have updated the code.

Copy link
Member

@edwinjue edwinjue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, looks good! Feel free to merge

@edwinjue edwinjue merged commit ed6dfef into dev Feb 8, 2023
@edwinjue edwinjue deleted the 1335-contact-form-validation branch February 8, 2023 21:48
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.

Sanitize/Validate input fields on Contact Form
2 participants