Skip to content

Commit 2b0e4fc

Browse files
Merge pull request #437 from Codeinwp/bugfix/pro/521
Fixed conditional field display issue with select option
2 parents 4ecc8e7 + b907902 commit 2b0e4fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

classes/fields.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,8 @@ function render_all_input_types( $name, $data, $fields_type, $field_index, $valu
990990
$html_input .= '</div>';
991991

992992
$html_input .= '<div class="col-md-3 col-sm-3">';
993+
$html_input .= '<select name="ppom[' . esc_attr( $field_index ) . '][conditions][rules][0][element_values]" class="form-control ppom-conditional-keys ppom-hide-element" data-metatype="element_values">';
994+
$html_input .= '</select>';
993995
$html_input .= '<input name="ppom[' . esc_attr( $field_index ) . '][conditions][rules][0][element_constant]" class="form-control ppom-conditional-keys ppom-hide-element" data-metatype="element_constant" >';
994996

995997
$html_input .= '<div class="ppom-between-input-container ppom-hide-element"> ';

0 commit comments

Comments
 (0)