Title: Metabox input validation
Last modified: August 22, 2016

---

# Metabox input validation

 *  [Sina Saeedi](https://wordpress.org/support/users/melodymag/)
 * (@melodymag)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/metabox-input-validation/)
 * Hi.
    I’ve added some meta boxes to Post. (Not Custom Post Type) Now I need a 
   validation system on inputs. For example I have “Reference Code” and “Weight”
   meta boxes, and both of them have to be numeric (not any other characters) and
   one of them is required. And of course I want if there is an error in validation,
   the post publish does not happen. Is there any built-in wordpress function or
   jQuery class to handle this?

The topic ‘Metabox input validation’ is closed to new replies.

## Tags

 * [metabox](https://wordpress.org/support/topic-tag/metabox/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 0 replies
 * 1 participant
 * Last reply from: [Sina Saeedi](https://wordpress.org/support/users/melodymag/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/metabox-input-validation/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
