Skip to content

Commit f87946d

Browse files
authored
Fix - Add conditional display logic for conditional rules in user registration form (#1291)
1 parent f8a47e5 commit f87946d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

includes/functions-ur-core.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3228,7 +3228,8 @@ function user_registration_pro_render_conditional_logic( $connection, $integrati
32283228
$output .= '</div>';
32293229
$output .= '</div>';
32303230

3231-
$output .= '<div class="form-row ur_conditional_logic_wrapper" data-source="' . esc_attr( $integration ) . '">';
3231+
$wrapper_style = '' === $checked ? ' style="display:none;"' : '';
3232+
$output .= '<div class="form-row ur_conditional_logic_wrapper"' . $wrapper_style . ' data-source="' . esc_attr( $integration ) . '">';
32323233
$output .= '<label class="ur-label checkbox">' . esc_html__( 'Conditional Rules', 'user-registration' ) . '</label>';
32333234
$output .= '<div class="ur-logic"><p>' . esc_html__( 'Send data only if the following matches.', 'user-registration' ) . '</p></div>';
32343235
$output .= '<div class="ur-conditional-wrapper">';

0 commit comments

Comments
 (0)