diff --git a/assets/css/frontend-forms.css b/assets/css/frontend-forms.css index a194effb5..5334e2895 100644 --- a/assets/css/frontend-forms.css +++ b/assets/css/frontend-forms.css @@ -1757,7 +1757,6 @@ body ul.wpuf-form .wpuf-field-columns .wpuf-column-field-inner-columns .wpuf-col border: 0; float: none; width: 100%; - overflow: hidden; } body ul.wpuf-form .wpuf-field-columns .wpuf-column-field-inner-columns .wpuf-column .wpuf-column-inner-fields { padding: 0 5px 0 0; diff --git a/assets/js/frontend-form.js b/assets/js/frontend-form.js index 70a7c994a..f75dd9887 100644 --- a/assets/js/frontend-form.js +++ b/assets/js/frontend-form.js @@ -355,10 +355,10 @@ clone.find( 'input' ).val( '' ); clone.find( 'textarea' ).val( '' ); clone.find( ':checked' ).prop( 'checked', false ); + div.after( clone ); + WP_User_Frontend.calculateFieldsName( $( this ).parents( '.wpuf-field-columns' ) ); WP_User_Frontend.setRowNumber( $( this ).closest( '.wpuf-field-columns' ) ); - - div.after( clone ); }, removeRepeatField: function () { diff --git a/assets/less/frontend-forms.less b/assets/less/frontend-forms.less index 89b31188c..d87b56274 100644 --- a/assets/less/frontend-forms.less +++ b/assets/less/frontend-forms.less @@ -2033,7 +2033,6 @@ ul.wpuf-form{ border: 0; float: none; width: 100%; - overflow: hidden; .wpuf-column-inner-fields{ padding: 0 5px 0 0; diff --git a/wpuf-functions.php b/wpuf-functions.php index b48ed4b47..d080fda60 100644 --- a/wpuf-functions.php +++ b/wpuf-functions.php @@ -925,7 +925,12 @@ function wpuf_show_custom_fields( $content ) { for ( $index = 0; $index < $repeat_rows; $index++ ) { $field_value = get_post_meta( $post->ID, $repeat_field_name . '_' . $index . '_' . $column_field['name'], true ); $hide_label = ! empty( $column_field['hide_field_label'] ) ? $column_field['hide_field_label'] : 'no'; - $html .= '
  • '; + + if ( is_array( $field_value ) ) { + $field_value = implode( ', ', $field_value ); + } + + $html .= '
  • '; if ( 'no' === $hide_label ) { $html .= '';