required fileds submit form

Home Forums Calendar Products Community Events required fileds submit form

  • This topic has 32 replies, 5 voices, and was last updated 6 years, 4 months ago by dsb cloud services GmbH & Co. KG.
Viewing 2 posts - 31 through 32 (of 32 total)
  • Author
    Posts
  • #1392811
    Victor
    Keymaster

    Hi Patrick!

    Thanks so much for the feedback!

    I could make both, the venue and event category fields required by using the following code:

    add_filter( 'tribe_events_community_required_fields', 'my_community_required_fields' );
    function my_community_required_fields( $fields ) {
       if ( is_array( $fields ) ) {
          $fields[] = 'tax_input.tribe_events_cat';
          $fields[] = 'venue';
       }
       return $fields;
    }

    Does the above code work for you? If it doesn’t, are you adding any other code to customize the community form? Please let me know.

    Thanks,
    Victor

    #1408831
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 2 posts - 31 through 32 (of 32 total)
  • The topic ‘required fileds submit form’ is closed to new replies.