• Resolved masterbyte

    (@masterbyte)


    Currently, the "Organizer" field in the Field editor cannot be edited (unless I missed something), so it is optional.
    
    However, I would like the "Organizer" field to be requiered
    
    Is there a solution or a workaround?
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @masterbyte

    Please add the following code in the functions.php file at theme side:
    
    // Add your own function to filter the fields
    add_filter( 'submit_event_form_fields', 'custom_submit_event_form_fields' );
     
    function custom_submit_event_form_fields( $fields ) {
     
       
        $fields['organizer']['event_organizer_ids']['required'] = true;
    $fields['venue']['event_venue_ids']['required'] = true;
     
        // And return the modified fields
        return $fields;
    }

    Regards,
    Priya

    Thread Starter masterbyte

    (@masterbyte)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Organizer Field required’ is closed to new replies.