Support

Account

Home Forums Front-end Issues Make fields required only on front-end form? Reply To: Make fields required only on front-end form?

  • use https://www.advancedcustomfields.com/resources/acf-prepare_field/ see options there

    
    add_filter('acf/prepare_field', 'required_on_front');
    required_on_front($field) {
      if (!is_admin()) {
        $field['required'] = true,
      }
      return $field;
    }