teammates icon indicating copy to clipboard operation
teammates copied to clipboard

[#13365] Add validation for email input in feedback form

Open Shuhui-Yang525 opened this issue 2 months ago • 3 comments

Fixes #13365 Implemented client-side validation for email-type questions in feedback sessions. Now, when a question in a feedback session expects an email address, the input field validates the format before submission. Users will only be able to submit the form if the entered value is a valid email.

Additionally:

Added corresponding error message styling: invalid email inputs are highlighted in red.

Updated relevant CSS classes to ensure error state is clear and consistent with the existing UI styling.

Tested to confirm correct behavior:

Valid email format → form submits normally.

Screenshots are included below to demonstrate the UI changes Before: IMG_6096

After: Weixin Image_20251024193331_581_10 Weixin Image_20251024193349_582_10

Shuhui-Yang525 avatar Oct 24 '25 08:10 Shuhui-Yang525

Hi @Shuhui-Yang525, thank you for your interest in contributing to TEAMMATES! However, your PR does not appear to follow our contribution guidelines:

  • Description must reference the issue number the PR is fixing, e.g. Fixes #<issue-number> (or Part of #<issue-number> if the PR does not address the issue fully)

Please address the above before we proceed to review your PR.

github-actions[bot] avatar Oct 24 '25 08:10 github-actions[bot]

I'm a group member and I tested this function.

Qilin127 avatar Oct 24 '25 08:10 Qilin127

Good work but needs minor adjustments for consistency.

Mees1ks avatar Oct 24 '25 08:10 Mees1ks