get_required_val( $args ); $name = $this->get_field_name( $args['name'] ); $default = ! Jet_Engine_Tools::is_empty( $args['default'] ) ? $args['default'] : false; $data_switch = ''; if ( $required ) { $required = 'required="required"'; } if ( ! empty( $args['switch_on_change'] ) ) { $data_switch = ' data-switch="1"'; } if ( ! empty( $args['field_options'] ) ) { echo '