Plugin Directory


Ignore:
Timestamp:
10/14/2026 04:54:36 PM (2 weeks ago)
Author:
formidableforms
Message:

Update to version 7.0 from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • formidable/trunk/classes/controllers/FrmComboFieldsController.php

    r3643639 r3746820  
    122122                }
    123123
     124                // Lets FrmFieldsController::add_shortcodes_to_html() pick this sub field's own aria-invalid
     125                // value, and name this sub field in its required message for JS validation.
     126                $atts['field']['subfield_name'] = $atts['key'];
     127
     128                if ( $field_obj instanceof FrmFieldCombo ) {
     129                        $atts['field']['subfield_label'] = $field_obj->get_sub_field_label( $atts['key'] );
     130                }
     131
    124132                if ( ! empty( $atts['sub_field']['optional'] ) ) {
    125133                        add_filter( 'frm_field_classes', 'FrmAddressesController::add_optional_class', 20, 2 );
Note: See TracChangeset for help on using the changeset viewer.