Skip to content

Commit

Permalink
form builder not showing add user type message
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiofan committed Dec 12, 2024
1 parent 83d0bdd commit 4de1f54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin/settings/class-formbuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public function multiple_registration_form( $tab = '' ) {


?>
<?php if ( ! empty( $register_forms ) && is_array( $register_forms ) ) { ?>
<?php if ( ! empty( $register_forms ) && is_array( $register_forms ) && count( $register_forms ) > 1 ) { ?>
<form class="uwp_user_type_form" id="uwp_user_type_form" method="POST">
<input type="hidden" name="manage_field_form_id" class="manage_field_form_id" id="manage_field_form_id" value="<?php echo esc_attr( $current_form ); ?>">
<?php do_action( 'uwp_user_type_form_before', $current_form, $tab ); ?>
Expand Down Expand Up @@ -419,7 +419,7 @@ class="form-select form-select-lgx">
<input type="hidden" name="manage_field_form_id" class="manage_field_form_id" id="manage_field_form_id"
value="<?php echo esc_attr( $current_form ); ?>">
<?php
if ( ! empty( $register_forms ) && is_array( $register_forms ) ) {
if ( ! empty( $register_forms ) && is_array( $register_forms ) && count( $register_forms ) > 1 ) {
?>
<div class="d-flex align-items-center">
<label class="form-label h1"><i class="fas fa-user me-3 iconbox border-0 fill rounded-circle transition-all btn-translucent-info iconsmallmedium"></i>
Expand Down Expand Up @@ -455,7 +455,7 @@ class="form-select aui-select2x">
<input type="hidden" name="manage_field_form_id" class="manage_field_form_id" id="manage_field_form_id"
value="<?php echo esc_attr( $current_form ); ?>">
<?php
if ( ! empty( $register_forms ) && is_array( $register_forms ) ) {
if ( ! empty( $register_forms ) && is_array( $register_forms ) && count( $register_forms ) > 1 ) {
?>
<div class="d-flex align-items-center">
<label class="form-label h1"><i class="fas fa-user me-3 iconbox border-0 fill rounded-circle transition-all btn-translucent-info iconsmallmedium"></i>
Expand Down

0 comments on commit 4de1f54

Please sign in to comment.