Editing Event Submission Form Fields

Editing Event Submission Form Fields

There are mainly 2 ways to customize the form fields in WP Event Manager :

  1. Using the Field editor option from the admin panel.
  2. Using the WordPress hooks (filters) which are explained below.

Using the field editor option from the admin panel

To add, edit or delete form fields in the event submission form using the field editor option, follow the below mentioned steps:

  1. Go to Event Manager >> Field Editor.
  2. Wp Event Manager Event Submission Form Field

  3. Add fields and customize them.
  4. Save changes.

Editing the event submission form fields at the frontend side

Altering occasion accommodation fields are conceivable by means of the submit_event_form_fields channel.

Including some code will permit you to alter different fields, or include new ones.

Check the below-mentioned image to see how to change a field’s label:

  1. // Add your own function to filter the fields
  2. add_filter( 'submit_event_form_fields', 'custom_submit_event_form_fields' );
  3. function custom_submit_event_form_fields( $fields ) {
  4.     // Here we target one of the event fields (event_title) and change it's label
  5.     $fields['event']['event_title']['label'] = "Custom Label";
  6.      // And return the modified fields
  7.     return $fields;
  8. }

Editing submission form fields at the admin side

Fields in the administrator are of comparative structure and can be altered utilizing the “event_manager_event_listing_data_fields” channel. Every field takes a marker, placeholder, sort and depiction contentions.

Check the below mentioned image to find an example on how to change a field’s label:

  1. // Add your own function to filter the fields
  2. add_filter( 'event_manager_event_listing_data_fields', 'custom_event_manager_event_listing_data_fields' ); 
  3. function custom_event_manager_event_listing_data_fields( $fields ) {
  4.     // Here we target one of the event fields (location) and change it's placeholder   
  5.  $fields['_event_location']['placeholder'] = "Custom placeholder";
  6.      // And return the modified fields
  7.     return $fields;
  8. }
    • Related Articles

    • Editing The Registration Form Fields

      In WP Event Manager, you can easily edit the Registration form value along with other form field details using the Filter event_registration_form_fields. The Filter allows you to change the field label, value and other attributes. In the following ...
    • Remove existing field from event submission form

      Removing fields from event the event submission form In this guide, you will learn about how you can remove existing fields from the event submission form and how you can remove some social fields from the organizer section. Remove existing field ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...
    • Creating a custom event search form

      WP Event Manager’s [Events] shortcode is coded to pick up search_location and search_keywords variables from the query string. Because of this, it’s easy to create a search form elsewhere on your site which posts to your events page. How to Create a ...