Title: Required Custom Fields
Last modified: June 17, 2025

---

# Required Custom Fields

 *  Resolved [savimigreg](https://wordpress.org/support/users/savimigreg/)
 * (@savimigreg)
 * [12 months ago](https://wordpress.org/support/topic/required-custom-fields-2/)
 * Hello,
 * I’m receiving an error when submitting an event form stating the following:
 * ‘Ecp Custom 30 is required’
 * I have located the issue and it’s being caused by this custom code:
 *     ```wp-block-code
       add_filter( 'tribe_events_community_required_fields', 'my_community_required_fields', 10, 1 );function my_community_required_fields( $fields ) {    if ( ! is_array( $fields ) ) {        return $fields;    }    $fields[] = 'EventStartDate';	$fields[] = 'EventEndDate';	$fields[] = 'tax_input.tribe_events_cat';	$fields[] = 'venue';	$fields[] = 'organizer';	/*	$fields[] = '_ecp_custom_25';	$fields[] = '_ecp_custom_30';	$fields[] = '_ecp_custom_31';	$fields[] = '_ecp_custom_32';	$fields[] = '_ecp_custom_33';	*/    return $fields;}
       ```
   
 * (Custom fields have been commented out for now to ensure the form works)
 * Even when I fill in all fields I still get the errors for custom fields not being
   populated.
 * Could you let me know if there is an issue with this code and how I can make 
   the custom fields required if this is not the correct method?
 * Thanks, Greg.
    -  This topic was modified 12 months ago by [savimigreg](https://wordpress.org/support/users/savimigreg/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frequired-custom-fields-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [tristan083](https://wordpress.org/support/users/tristan083/)
 * (@tristan083)
 * [12 months ago](https://wordpress.org/support/topic/required-custom-fields-2/#post-18517040)
 * Hi [@savimigreg](https://wordpress.org/support/users/savimigreg/) ,
 * Thank you for reaching out.
 * Since your concern here is about one of our premium/add-on plugins (the Community
   Events plugin), please open a [Support Ticket](https://theeventscalendar.com/support/#contact)
   on our Help Desk. Also, this is for us to adhere to the [WordPress Forum Guidelines](https://wordpress.org/support/guidelines/)
   regarding premium users.
 *  Thread Starter [savimigreg](https://wordpress.org/support/users/savimigreg/)
 * (@savimigreg)
 * [11 months, 4 weeks ago](https://wordpress.org/support/topic/required-custom-fields-2/#post-18519421)
 * Thanks! I’ve submitted a ticket there as requested.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Required Custom Fields’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [savimigreg](https://wordpress.org/support/users/savimigreg/)
 * Last activity: [11 months, 4 weeks ago](https://wordpress.org/support/topic/required-custom-fields-2/#post-18519421)
 * Status: resolved