multiple_input_html(); } protected function include_form_builder_file() { return $this->include_front_form_file(); } /** * @return bool[] */ protected function field_settings_for_type() { return array( 'invalid' => true, ); } /** * @return string[] */ protected function new_field_settings() { return array( 'options' => serialize( array( __( 'Option 1', 'formidable' ), __( 'Option 2', 'formidable' ), ) ), ); } /** * Get the type of field being displayed. * * @since 4.02.01 * * @param array|object $field * * @return array */ public function displayed_field_type( $field ) { return array( $this->type => true, ); } /** * @return array */ protected function extra_field_opts() { return array( 'align' => '', ); } /** * @since 4.06 * * @param array $args * * @return void */ protected function show_priority_field_choices( $args = array() ) { include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/radio-images.php'; } /** * @return string */ protected function include_front_form_file() { return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/front-end/checkbox-field.php'; } /** * @return bool */ protected function show_readonly_hidden() { return true; } protected function prepare_import_value( $value, $atts ) { return $this->get_multi_opts_for_import( $value ); } /** * Unset aria-invalid for checkboxes because it's not valid for checkboxes. * Instead aria-invalid is added to the checkbox group parent element. * * @since 6.25 * * @param array $shortcode_atts * @param array $args */ public function set_aria_invalid_error( &$shortcode_atts, $args ) { unset( $shortcode_atts['aria-invalid'] ); } }