- This topic has 2 replies, 2 voices, and was last updated 5 months, 4 weeks ago by .
-
Topic
-
Hi,
The required validation for the fields in add new terms not working, it works only in the edit term page, but when trying to add term the validation not working.
$meta_boxes[] = array( 'title' => 'Banner', 'taxonomies' => 'news-categories', 'fields' => array( array( 'name' => 'Title', 'id' => 'banner_title', 'type' => 'text', 'required' => 1, ), array( 'name' => 'Description', 'id' => 'banner_description', 'type' => 'textarea', 'desc' => 'Maximum number of characters is 45', ), array( 'name' => 'Body', 'id' => 'banner_body', 'type' => 'textarea', 'desc' => 'Maximum number of characters is 150', ), array( 'name' => 'Image', 'id' => 'banner_image', 'type' => 'image_advanced', 'max_file_uploads' => 1, 'required' => 1, 'desc' => '(250 x 250)', ), ), 'validation' => array( 'rules' => array( 'banner_image' => array( 'required' => 1, ), // Rules for other fields ), ) );
Can you help me to fix this?
Thank you,
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.