"Required" label not showing on venue and organizer fields

Home Forums Calendar Products Events Calendar PRO "Required" label not showing on venue and organizer fields

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #616362
    Rick Dumont
    Participant

    First of all, thanks for the update that allowed the venue and organizer fields to be required more easily than before. Works great. However they are not marked as “required” like the other fields automatically are. Is there some extra step I am missing? Here’s the code I’m using: http://pastebin.com/8RXRccT1

    #638852
    Barry
    Member

    Hi Rick – yes, to add the required markers you’d need to add a little extra code, something like this:

    add_filter( 'tribe_events_community_required_fields', 'add_ce_required_field_labels' );
    
    function add_ce_required_field_labels( array $fields ) {
    	$fields[] = 'organizer';
    	$fields[] = 'venue';
    	return $fields;
    }

    Does that help here?

    #639189
    Rick Dumont
    Participant

    Hi Barry,
    Thanks for your response. I added the code to my theme’s functions.php file but no luck, the “required” text still does not show. Any other thoughts?
    Rick

    #641451
    Barry
    Member

    Hi!

    It looks like you’ve customized your submission form a little. Perhaps changes made in recent versions of Community Events haven’t been carried over to the customized versions of the templates?

    Could you (temporarily) rename your tribe-events directory (within your theme) to something like __disabled and take another peek at your submission form and check if you now see “Required” next to the sections you mentioned?

    Thanks!

    #642526
    Rick Dumont
    Participant

    Yes, when I disable the directory I can see the “required” text. Is it possible to get it to work with my customized form?
    Thanks.
    Rick

    #650563
    Barry
    Member

    It probably is – I’m not actually sure what you’re missing/what exactly you’ve done differently, but what I’d recommend is looking at the current default version of the template and simply compare and contrast with your custom version.

    Would that work here?

    #679330
    Rick Dumont
    Participant

    I’ll give it a look-see and try to figure it out.
    Thanks for all your help.
    Rick

    #680930
    Barry
    Member

    My pleasure 🙂

    #723493
    Barry
    Member

    Hi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘"Required" label not showing on venue and organizer fields’ is closed to new replies.