Validation only applies to published posts. Entries marked as “Draft” will bypass validation. Is that the issue you’re experiencing?
Thanks for the reply, I am publishing… I am also admin does that matter? There is no error message, popup, ect when I hit publish with nothing in the required field. Should it also be required when updating as well? It doesn’t happen then either.
{"1180":{"post_title":"Entries","post_name":"entries","meta":[{"meta_key":"cfs_rules","meta_value":"a:1:{s:10:\"post_types\";a:2:{s:8:\"operator\";a:1:{i:0;s:2:\"==\";}s:6:\"values\";a:1:{i:0;s:7:\"entries\";}}}"},{"meta_key":"cfs_extras","meta_value":"a:1:{s:11:\"hide_editor\";s:1:\"0\";}"}],"fields":{"10":{"name":"project_description","label":"Project Description","type":"text","instructions":"","parent_id":"0","weight":"0","options":"a:2:{s:13:\"default_value\";s:0:\"\";s:8:\"required\";s:1:\"1\";}"}}}}
Huh, odd… now it erred on update but still not on publish. “Please enter a value” is what I get when I hit update.
I’ll look into this shortly.
Thanks, also forgot to say it’s on a custom post type:
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'entries',
array(
'label' => 'Entries',
'public' => true,
'show_in_menu' => true,
'menu_position' => 20,
'supports' => array( 'title', 'author', 'thumbnail' ),
'rewrite' => false,
'rewrite' => array(
'slug' => '/entries',
'hierarchical' => false,
'capability_type' => 'post',
'with_front' => FALSE
),
)
);
}
Thanks for reporting this issue. It’s been fixed, and will be released in the next version.
Matt
Cool thanks, what’s the release date? Client is waiting on it.
“When it’s ready” is my usual answer. But you’re welcomed to replace the validation.js file on your site with the fixed version:
https://github.com/logikal16/custom-field-suite/blob/fe61ce7d66e1fbe61d389b1f7161d0b97c971782/js/validation.js
Thanks… waiting on the client anyhow. Love the plug in and the support. Gonna PP ya a donation.
Hm, I replaced it but still publishing? Cleared the cache and such too.
Can you browse to Field Groups > Tools > Debug and show me the contents?
Here’s what I’m referring to: http://i.imgur.com/Y4s9d.png
It’s a quick way for me to see which other plugins (and versions) you have installed, to help diagnose the issue.