Radio Select and Check-Box select add a before the field label
-
This makes field labels drop to next row, after the radio button or check-box.
This is the code for the radio buttton:
<input type="radio" id="<?php echo esc_attr( Caldera_Forms_Field_Util::opt_id_attr( $field_id, $option_key ) ); ?>" data-field="<?php echo esc_attr( $field_base_id ); ?>" class="<?php echo esc_attr( $field_id . $req_class ); ?>" name="<?php echo esc_attr( $field_name ); ?>" value="<?php echo esc_attr( $option['value'] ); ?>" <?php if( $checked ){ ?>checked="checked"<?php } ?> <?php if( $disabled ){ ?>disabled<?php } ?> <?php echo $field_required; ?> data-radio-field="<?php echo esc_attr( $field_id ); ?>" data-type="radio" data-calc-value="<?php echo esc_attr( Caldera_Forms_Field_Util::get_option_calculation_value( $option, $field, $form ) ); ?>" /> <?php echo $option['label']; ?> </label>
I simply moved
<?php echo $option['label']; ?>
on the same row with the closing of the <input> , like this:); ?>" /> <?php echo $option['label']; ?> </label>
I suspect the same issue is happening to the check-box field type.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Radio Select and Check-Box select add a before the field label’ is closed to new replies.