WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Suite
[resolved] Required Fields (21 posts)

  1. consumedesign
    Member
    Posted 1 year ago #

    Is there sup'd to be a message or something that happens when a user Submits a post with the Validation checked for "This is a required field"? I can still submit posts even if there isn't anything in the textbox that is required.

    http://wordpress.org/extend/plugins/custom-field-suite/

  2. logikal16
    Member
    Plugin Author

    Posted 1 year ago #

    Validation only applies to published posts. Entries marked as "Draft" will bypass validation. Is that the issue you're experiencing?

  3. consumedesign
    Member
    Posted 1 year ago #

    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\";}"}}}}

  4. consumedesign
    Member
    Posted 1 year ago #

  5. consumedesign
    Member
    Posted 1 year ago #

    Huh, odd... now it erred on update but still not on publish. "Please enter a value" is what I get when I hit update.

  6. logikal16
    Member
    Plugin Author

    Posted 1 year ago #

    I'll look into this shortly.

  7. consumedesign
    Member
    Posted 1 year ago #

    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
    			),
    		)
    	);
    }
  8. logikal16
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for reporting this issue. It's been fixed, and will be released in the next version.

    Matt

  9. consumedesign
    Member
    Posted 1 year ago #

    Cool thanks, what's the release date? Client is waiting on it.

  10. logikal16
    Member
    Plugin Author

    Posted 1 year ago #

    "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

  11. consumedesign
    Member
    Posted 1 year ago #

    Thanks... waiting on the client anyhow. Love the plug in and the support. Gonna PP ya a donation.

  12. logikal16
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you!

  13. consumedesign
    Member
    Posted 1 year ago #

    Hm, I replaced it but still publishing? Cleared the cache and such too.

  14. logikal16
    Member
    Plugin Author

    Posted 1 year ago #

    Can you browse to Field Groups > Tools > Debug and show me the contents?

  15. consumedesign
    Member
    Posted 1 year ago #

    Wrong info

  16. logikal16
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  17. consumedesign
    Member
    Posted 1 year ago #

    Oh gotcha:

    WordPress 3.4.2
    PHP 5.2.17
    Apache
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1
    
    -- Active Plugins --
    Any Mobile Theme Switcher 0.7
    Custom Field Suite 1.7.8
    Google XML Sitemaps 3.2.8
    Manage Your Posts Only 0.1
    New User Email Setup 0.5.2
    Page Links To 2.7.1
    Theme Switch 0.9.0.3
    User Switching 0.7
    WP Status Notifier 1.3.1
  18. logikal16
    Member
    Plugin Author

    Posted 1 year ago #

    Could you email me a login to your site? https://uproot.us/contact/

  19. consumedesign
    Member
    Posted 1 year ago #

    Sent.

  20. logikal16
    Member
    Plugin Author

    Posted 1 year ago #

    It's working fine for me: http://i.imgur.com/16KkT.png

  21. consumedesign
    Member
    Posted 1 year ago #

    Hm odd thanks, ya working fine now. Wish I could give ya more in donation but this month with xmas it's pretty tight... thanks for the great support!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic