Title: client side comments validation
Last modified: August 18, 2016

---

# client side comments validation

 *  [andyb2](https://wordpress.org/support/users/andyb2/)
 * (@andyb2)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/client-side-comments-validation/)
 * I am looking for a way to validate entries in a comment.
 * For example, if a user doesn’t include any comments or doesn’t include an email
   address, wp_die is called (server side) and a standard error message is produced.
 * Now i know we can hack the functions.php file and redirect the user to a custom
   error message page but i was hoping to create a client side solution.
 * For example use some javascript – alert() fuction.
 * Does anyone know how to do this?
 * Thanks

The topic ‘client side comments validation’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [andyb2](https://wordpress.org/support/users/andyb2/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/client-side-comments-validation/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
