Make WordPress Core

#58968 closed enhancement (duplicate)

Client side validation for comment form

Reported by: jomonthomaslobo1's profile jomonthomaslobo1 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Comments Keywords:
Focuses: ui, javascript, sustainability Cc:

Description

Bug Report

Description

Client side validation for the guest user conment form .

Environment

  • WordPress: 6.3-RC3-56344
  • PHP: 7.4.33
  • Server: Apache/2.4.54 (Unix) OpenSSL/1.0.2u PHP/7.4.33 mod_wsgi/3.5 Python/2.7.18 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1
  • Database: mysqli (Server: 5.7.39 / Client: mysqlnd 7.4.33)
  • Browser: Chrome 114.0.0.0 (macOS)
  • Theme: Twenty Twenty-Three 1.2
  • MU-Plugins: None activated
  • Plugins:
    • WordPress Beta Tester 3.5.2

Steps to Reproduce

  1. Go to any WordPress post
  2. Input any invalid data in any input field
  3. Click submit button

Expected Results

  1. Page should not redirect
  2. Validation error for all error fields should show

Actual Results

  1. Redirected to a new URL with error page
  2. Shows only first validation error in the form

https://i.ibb.co/12Pdb0W/Screenshot-2023-08-03-at-4-47-37-PM.png

Change History (1)

#1 @sabernhardt
15 months ago

  • Component changed from General to Comments
  • Keywords changes-requested removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version trunk deleted

Hi and welcome to WordPress Core Trac!

We're already tracking this issue in #47595, if you would like to add to that discussion.

Note: See TracTickets for help on using tickets.