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,