public/partials/shortcodes/process_form_shortcode.php 1 location
|
@@ 519-523 (lines=5) @@
|
| 516 |
|
} |
| 517 |
|
|
| 518 |
|
// if both hide label and hide field are checked, we gotta hide the field! |
| 519 |
|
if( isset( $field['hide' ] ) && $field['hide'] == 1 ) { |
| 520 |
|
if( isset( $field['hide-label' ] ) && $field['hide-label'] == 1 ) { |
| 521 |
|
$field_array['visible'] = 'style="display:none;"'; |
| 522 |
|
} |
| 523 |
|
} |
| 524 |
|
|
| 525 |
|
// Sanitize the classes |
| 526 |
|
$label_class_array = function_exists( 'sanitize_html_class' ) ? array_map( 'sanitize_html_class', $label_class_array ) : $label_class_array; |
src/Form/FieldBuilder.php 1 location
|
@@ 110-114 (lines=5) @@
|
| 107 |
|
protected function get_hidden( $field ) { |
| 108 |
|
$visible = true; |
| 109 |
|
// if both hide label and hide field are checked, we gotta hide the field! |
| 110 |
|
if( isset( $field['hide' ] ) && $field['hide'] == 1 ) { |
| 111 |
|
if( isset( $field['hide-label' ] ) && $field['hide-label'] == 1 ) { |
| 112 |
|
$visible = false; |
| 113 |
|
} |
| 114 |
|
} |
| 115 |
|
return $visible; |
| 116 |
|
} |
| 117 |
|
|