Plugin Directory

Changeset 3404010


Ignore:
Timestamp:
11/27/2025 11:41:42 AM (2 weeks ago)
Author:
coolplugins
Message:

Update to version 1.4.9 from GitHub

Location:
conditional-fields-for-elementor-form
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • conditional-fields-for-elementor-form/tags/1.4.9/admin/class-cfef-admin.php

    r3347987 r3404010  
    100100       
    101101        add_action('cpfm_after_opt_in_cfef', function($category) {
    102 
    103                
    104 
     102           
    105103                if ($category === 'cool_forms') {
    106104
     
    112110        });
    113111    }
     112
     113
     114    public function add_to_cfkef_enabled_elements( $new_items ) {
     115        $current = get_option( 'cfkef_enabled_elements', [] );
     116        $merged  = array_unique( array_merge( $current, (array) $new_items ) );
     117        update_option( 'cfkef_enabled_elements', $merged );
     118    }
     119
    114120    /**
    115121     * Get the instance of this class.
     
    254260        register_setting( 'cfkef_form_elements_group', 'cfkef_toggle_all' );
    255261        register_setting( 'cfkef_form_elements_group', 'country_code' );
    256         register_setting( 'cfkef_form_elements_group', 'condtional_logic' );
     262        register_setting( 'cfkef_form_elements_group', 'conditional_logic' );
    257263        register_setting( 'cfkef_form_elements_group', 'form_input_mask' );
    258264        register_setting( 'cfkef_form_elements_group', 'input_mask' );
     
    264270        if (!get_option('cfef_plugin_initialized')) {
    265271            // Get current enabled elements or empty array
    266 
    267                 update_option( 'condtional_logic', true );
     272            $this->add_to_cfkef_enabled_elements( ['conditional_logic'] );
     273            // Set initialization flag to avoid repeating
     274            update_option('cfef_plugin_initialized', true);
    268275           
    269                 // Set initialization flag to avoid repeating
    270                 update_option('cfef_plugin_initialized', true);
    271            
    272         }
    273 
    274         if (!get_option('ccfef_plugin_initialized')) {
    275             // Get current enabled elements or empty array
    276                 update_option( 'country_code', true );
    277            
    278             // Set initialization flag to avoid repeating
    279             update_option('ccfef_plugin_initialized', true);
    280         }
    281 
    282         if (!get_option('fme_plugin_initialized')) {
    283             // Get current enabled elements or empty array
    284 
    285                 update_option( 'form_input_mask', true );
    286            
    287                 // Set initialization flag to avoid repeating
    288                 update_option('fme_plugin_initialized', true);
    289            
     276        }
     277        else {
     278
     279            if ( ! get_option( 'cfef_migrate_done' ) ) {
     280
     281                $val = get_option( 'condtional_logic', null );
     282
     283                if ( ! is_null( $val ) && $val ) {
     284                    // Option exists AND is true
     285                    $this->add_to_cfkef_enabled_elements( ['conditional_logic'] );
     286                }
     287
     288                update_option( 'cfef_migrate_done', true );
     289            }
     290        }
     291
     292        if ( ! get_option( 'ccfef_plugin_initialized' ) ) {
     293
     294            $this->add_to_cfkef_enabled_elements( ['country_code'] );
     295
     296            update_option( 'ccfef_plugin_initialized', true );
     297
     298        } else {
     299
     300            if ( ! get_option( 'ccfef_migrate_done' ) ) {
     301
     302                $val = get_option( 'country_code', null );
     303
     304                if ( ! is_null( $val ) && $val ) {
     305                    // Option exists AND is true
     306                    $this->add_to_cfkef_enabled_elements( ['country_code'] );
     307                }
     308
     309                update_option( 'ccfef_migrate_done', true );
     310            }
     311        }
     312
     313        if ( ! get_option( 'fme_plugin_initialized' ) ) {
     314
     315            $this->add_to_cfkef_enabled_elements( ['form_input_mask'] );
     316
     317            update_option( 'fme_plugin_initialized', true );
     318
     319        } else {
     320
     321            if ( ! get_option( 'fme_migrate_done' ) ) {
     322
     323                $val = get_option( 'form_input_mask', null );
     324
     325                if ( ! is_null( $val ) && $val ) {
     326                    // Option exists AND is true
     327                    $this->add_to_cfkef_enabled_elements( ['form_input_mask'] );
     328                }
     329
     330                update_option( 'fme_migrate_done', true );
     331            }
    290332        }
    291333    }
  • conditional-fields-for-elementor-form/tags/1.4.9/admin/views/form-elements.php

    r3348615 r3404010  
    183183
    184184$condition_plugin_features = array(
    185     'condtional_logic' => array(
     185    'conditional_logic' => array(
    186186        'label' => __('Conditional Logic', 'cool-formkit'),
    187187        'how_to' => str_replace('utm_source=cfkef_plugin', 'utm_source=' . $first_plugin, 'https://docs.coolplugins.net/doc/elementor-form-conditional-fields/?utm_source=cfkef_plugin&utm_medium=inside&utm_campaign=docs&utm_content=dashboard'),
     
    520520
    521521                                            <label class="cfkef-toggle-switch" style="<?php echo !$is_condtional_field_active ? 'opacity: 0.2; ' : ''; ?>">
    522                                                 <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('condtional_logic'));
    523                                                                                                                         ?> class="cfkef-element-toggle"
     522                                                <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle"
    524523                                                    <?php disabled(!$is_condtional_field_active); ?>>
    525524                                                <?php if (!empty($element['pro'])): ?>
     
    722721
    723722                                            <label class="cfkef-toggle-switch" style="<?php echo !$is_country_field_active ? 'opacity: 0.2; ' : ''; ?>">
    724                                                 <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('country_code'));
    725                                                                                                                         ?> class="cfkef-element-toggle"
     723                                                <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle"
    726724                                                    <?php disabled(!$is_country_field_active); ?>>
    727725                                                <?php if (!empty($element['pro'])): ?>
     
    836834                                                </div>
    837835                                                <label class="cfkef-toggle-switch" >
    838                                                     <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('form_input_mask')); ?> class="cfkef-element-toggle"
     836                                                    <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle"
    839837                                                        <?php disabled(!empty($element['pro'])); ?>>
    840838                                                    <?php if (!empty($element['pro'])): ?>
     
    10401038
    10411039                                                <label class="cfkef-toggle-switch" style="<?php echo !$is_form_mask_active ? 'opacity: 0.2; ' : ''; ?>">
    1042                                                     <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('form_input_mask'));
    1043                                                                                                                             ?> class="cfkef-element-toggle"
     1040                                                    <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle"
    10441041                                                        <?php disabled(!$is_form_mask_active); ?>>
    10451042                                                    <?php if (!empty($element['pro'])): ?>
  • conditional-fields-for-elementor-form/tags/1.4.9/assets/js/admin-script.js

    r3347987 r3404010  
    8282        if (!headerButton || bodyInputs.length === 0) return;
    8383
    84         const input1 = wrapper.querySelector('input[name="condtional_logic"]');
    85         const input2 = wrapper.querySelector('input[name="country_code"]');
    86         const input3 = wrapper.querySelector('input[name="form_input_mask"]');
    87         const input4 = wrapper.querySelector('input[name="input_mask"]');
     84        const input1 = wrapper.querySelector('input[value="conditional_logic"]');
     85        const input2 = wrapper.querySelector('input[value="country_code"]');
     86        const input3 = wrapper.querySelector('input[value="form_input_mask"]');
     87        const input4 = wrapper.querySelector('input[value="input_mask"]');
    8888
    8989
     
    9595        }
    9696
     97       
    9798
    9899        bodyInputs.forEach(input => {
    99100
    100 
    101 
    102101            input.addEventListener('change', function () {
    103                 console.log(input.name);
    104 
    105 
    106                 if (input1 && input.name === 'condtional_logic') {
     102
     103
     104                if (input1 && input.value === 'conditional_logic') {
    107105
    108106
    109107                    if(input1.checked || !input1.checked){
    110108
    111                         jQuery('input[name="condtional_logic"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
     109                        jQuery('input[value="conditional_logic"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
    112110                    }
    113111                }
    114112               
    115                 else if (input2 && input.name === 'country_code') {
     113                else if (input2 && input.value === 'country_code') {
    116114
    117115                    if(input2.checked || !input2.checked){
    118116
    119                         jQuery('input[name="country_code"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
    120                     }
    121                 }
    122 
    123                 else if (input3 && input.name === 'form_input_mask') {
     117                        jQuery('input[value="country_code"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
     118                    }
     119                }
     120
     121                else if (input3 && input.value === 'form_input_mask') {
    124122
    125123                    if(input3.checked || !input3.checked){
    126124
    127                         jQuery('input[name="form_input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
    128                     }
    129                 }
    130 
    131                 else if (input4 && input.name === 'input_mask') {
     125                        jQuery('input[value="form_input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
     126                    }
     127                }
     128
     129                else if (input4 && input.value === 'input_mask') {
    132130
    133131                    if(input4.checked || !input4.checked){
    134132
    135                         jQuery('input[name="input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
     133                        jQuery('input[value="input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
    136134                    }
    137135                }
     
    154152            if (tooltip.style.display === 'block') {
    155153                tooltip.style.display = 'none';
    156 
    157154                let plugin_name = tooltip.textContent.replace('Activate Plugin', '');
    158155
    159                 tooltip.textContent = plugin_name; // Reset message
    160 
    161 
     156                tooltip.innerHTML = plugin_name; // Reset message
    162157            } else {
    163158                tooltip.style.display = 'block';
     
    201196            document.querySelectorAll('.cfkef-tooltip').forEach(tip => {
    202197                tip.style.display = 'none';
    203 
    204 
    205198                tip_message  = tip.textContent.replace('Activate Plugin', '');
    206199                tip.innerHTML = tip_message;
     
    244237                                    window.location.reload();
    245238                                }
    246                                
    247239                            },
    248240                            error: function () {
  • conditional-fields-for-elementor-form/tags/1.4.9/class-conditional-fields-for-elementor-form.php

    r3379234 r3404010  
    44 * Plugin URI:https://coolplugins.net/
    55 * Description: The Conditional Fields for Elementor plugin add-on used to show and hide form fields based on conditional input values.
    6  * Version: 1.4.8
     6 * Version: 1.4.9
    77 * Author:  Cool Plugins
    88 * Author URI: https://coolplugins.net/?utm_source=cfef_plugin&utm_medium=inside&utm_campaign=author_page&utm_content=plugins_list
     
    2121}
    2222if ( ! defined( 'CFEF_VERSION' ) ) {
    23     define( 'CFEF_VERSION', '1.4.8' );
     23    define( 'CFEF_VERSION', '1.4.9' );
    2424}
    2525/*** Defined constent for later use */
     
    7777        }
    7878
     79        private function is_field_enabled($field_key) {
     80            $enabled_elements = get_option('cfkef_enabled_elements', array());
     81            return in_array(sanitize_key($field_key), array_map('sanitize_key', $enabled_elements));
     82        }
     83
    7984        private function includes() {
    8085
     
    8691        public function cfef_register_new_form_actions($form_actions_registrar){
    8792
    88             if(get_option('condtional_logic', true)){
     93            if($this->is_field_enabled('conditional_logic')){
    8994
    9095                include_once( __DIR__ .  '/includes/class-conditional-fields-redirection.php' );
     
    98103         */
    99104        public function is_compatible() {
    100             add_action( 'admin_init', array( $this, 'is_elementor_pro_exist' ), 5 );
    101 
    102             if(get_option('condtional_logic', true)){
     105            // add_action( 'admin_init', array( $this, 'is_elementor_pro_exist' ), 5 );
     106
     107            if($this->is_field_enabled('conditional_logic')){
    103108
    104109
  • conditional-fields-for-elementor-form/tags/1.4.9/readme.txt

    r3379234 r3404010  
    66Tested up to: 6.8.2
    77Requires PHP: 7.2
    8 Stable tag: 1.4.8
     8Stable tag: 1.4.9
    99
    1010License: GPLv2 or later
     
    232232
    233233== Changelog ==
     234
     235= 1.4.9 | Nov 27, 2025 =
     236* Fixed: Setting ID mismatch causing updates to not reflect in all versions.
    234237
    235238= 1.4.8 | Oct 16, 2025 =
  • conditional-fields-for-elementor-form/trunk/admin/class-cfef-admin.php

    r3347987 r3404010  
    100100       
    101101        add_action('cpfm_after_opt_in_cfef', function($category) {
    102 
    103                
    104 
     102           
    105103                if ($category === 'cool_forms') {
    106104
     
    112110        });
    113111    }
     112
     113
     114    public function add_to_cfkef_enabled_elements( $new_items ) {
     115        $current = get_option( 'cfkef_enabled_elements', [] );
     116        $merged  = array_unique( array_merge( $current, (array) $new_items ) );
     117        update_option( 'cfkef_enabled_elements', $merged );
     118    }
     119
    114120    /**
    115121     * Get the instance of this class.
     
    254260        register_setting( 'cfkef_form_elements_group', 'cfkef_toggle_all' );
    255261        register_setting( 'cfkef_form_elements_group', 'country_code' );
    256         register_setting( 'cfkef_form_elements_group', 'condtional_logic' );
     262        register_setting( 'cfkef_form_elements_group', 'conditional_logic' );
    257263        register_setting( 'cfkef_form_elements_group', 'form_input_mask' );
    258264        register_setting( 'cfkef_form_elements_group', 'input_mask' );
     
    264270        if (!get_option('cfef_plugin_initialized')) {
    265271            // Get current enabled elements or empty array
    266 
    267                 update_option( 'condtional_logic', true );
     272            $this->add_to_cfkef_enabled_elements( ['conditional_logic'] );
     273            // Set initialization flag to avoid repeating
     274            update_option('cfef_plugin_initialized', true);
    268275           
    269                 // Set initialization flag to avoid repeating
    270                 update_option('cfef_plugin_initialized', true);
    271            
    272         }
    273 
    274         if (!get_option('ccfef_plugin_initialized')) {
    275             // Get current enabled elements or empty array
    276                 update_option( 'country_code', true );
    277            
    278             // Set initialization flag to avoid repeating
    279             update_option('ccfef_plugin_initialized', true);
    280         }
    281 
    282         if (!get_option('fme_plugin_initialized')) {
    283             // Get current enabled elements or empty array
    284 
    285                 update_option( 'form_input_mask', true );
    286            
    287                 // Set initialization flag to avoid repeating
    288                 update_option('fme_plugin_initialized', true);
    289            
     276        }
     277        else {
     278
     279            if ( ! get_option( 'cfef_migrate_done' ) ) {
     280
     281                $val = get_option( 'condtional_logic', null );
     282
     283                if ( ! is_null( $val ) && $val ) {
     284                    // Option exists AND is true
     285                    $this->add_to_cfkef_enabled_elements( ['conditional_logic'] );
     286                }
     287
     288                update_option( 'cfef_migrate_done', true );
     289            }
     290        }
     291
     292        if ( ! get_option( 'ccfef_plugin_initialized' ) ) {
     293
     294            $this->add_to_cfkef_enabled_elements( ['country_code'] );
     295
     296            update_option( 'ccfef_plugin_initialized', true );
     297
     298        } else {
     299
     300            if ( ! get_option( 'ccfef_migrate_done' ) ) {
     301
     302                $val = get_option( 'country_code', null );
     303
     304                if ( ! is_null( $val ) && $val ) {
     305                    // Option exists AND is true
     306                    $this->add_to_cfkef_enabled_elements( ['country_code'] );
     307                }
     308
     309                update_option( 'ccfef_migrate_done', true );
     310            }
     311        }
     312
     313        if ( ! get_option( 'fme_plugin_initialized' ) ) {
     314
     315            $this->add_to_cfkef_enabled_elements( ['form_input_mask'] );
     316
     317            update_option( 'fme_plugin_initialized', true );
     318
     319        } else {
     320
     321            if ( ! get_option( 'fme_migrate_done' ) ) {
     322
     323                $val = get_option( 'form_input_mask', null );
     324
     325                if ( ! is_null( $val ) && $val ) {
     326                    // Option exists AND is true
     327                    $this->add_to_cfkef_enabled_elements( ['form_input_mask'] );
     328                }
     329
     330                update_option( 'fme_migrate_done', true );
     331            }
    290332        }
    291333    }
  • conditional-fields-for-elementor-form/trunk/admin/views/form-elements.php

    r3348615 r3404010  
    183183
    184184$condition_plugin_features = array(
    185     'condtional_logic' => array(
     185    'conditional_logic' => array(
    186186        'label' => __('Conditional Logic', 'cool-formkit'),
    187187        'how_to' => str_replace('utm_source=cfkef_plugin', 'utm_source=' . $first_plugin, 'https://docs.coolplugins.net/doc/elementor-form-conditional-fields/?utm_source=cfkef_plugin&utm_medium=inside&utm_campaign=docs&utm_content=dashboard'),
     
    520520
    521521                                            <label class="cfkef-toggle-switch" style="<?php echo !$is_condtional_field_active ? 'opacity: 0.2; ' : ''; ?>">
    522                                                 <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('condtional_logic'));
    523                                                                                                                         ?> class="cfkef-element-toggle"
     522                                                <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle"
    524523                                                    <?php disabled(!$is_condtional_field_active); ?>>
    525524                                                <?php if (!empty($element['pro'])): ?>
     
    722721
    723722                                            <label class="cfkef-toggle-switch" style="<?php echo !$is_country_field_active ? 'opacity: 0.2; ' : ''; ?>">
    724                                                 <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('country_code'));
    725                                                                                                                         ?> class="cfkef-element-toggle"
     723                                                <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle"
    726724                                                    <?php disabled(!$is_country_field_active); ?>>
    727725                                                <?php if (!empty($element['pro'])): ?>
     
    836834                                                </div>
    837835                                                <label class="cfkef-toggle-switch" >
    838                                                     <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('form_input_mask')); ?> class="cfkef-element-toggle"
     836                                                    <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle"
    839837                                                        <?php disabled(!empty($element['pro'])); ?>>
    840838                                                    <?php if (!empty($element['pro'])): ?>
     
    10401038
    10411039                                                <label class="cfkef-toggle-switch" style="<?php echo !$is_form_mask_active ? 'opacity: 0.2; ' : ''; ?>">
    1042                                                     <input type="checkbox" name="<?php echo esc_attr($key); ?>" value="1" <?php checked(get_option('form_input_mask'));
    1043                                                                                                                             ?> class="cfkef-element-toggle"
     1040                                                    <input type="checkbox" name="cfkef_enabled_elements[]" value="<?php echo esc_attr($key); ?>" <?php checked(in_array($key, $enabled_elements)); ?> class="cfkef-element-toggle"
    10441041                                                        <?php disabled(!$is_form_mask_active); ?>>
    10451042                                                    <?php if (!empty($element['pro'])): ?>
  • conditional-fields-for-elementor-form/trunk/assets/js/admin-script.js

    r3347987 r3404010  
    8282        if (!headerButton || bodyInputs.length === 0) return;
    8383
    84         const input1 = wrapper.querySelector('input[name="condtional_logic"]');
    85         const input2 = wrapper.querySelector('input[name="country_code"]');
    86         const input3 = wrapper.querySelector('input[name="form_input_mask"]');
    87         const input4 = wrapper.querySelector('input[name="input_mask"]');
     84        const input1 = wrapper.querySelector('input[value="conditional_logic"]');
     85        const input2 = wrapper.querySelector('input[value="country_code"]');
     86        const input3 = wrapper.querySelector('input[value="form_input_mask"]');
     87        const input4 = wrapper.querySelector('input[value="input_mask"]');
    8888
    8989
     
    9595        }
    9696
     97       
    9798
    9899        bodyInputs.forEach(input => {
    99100
    100 
    101 
    102101            input.addEventListener('change', function () {
    103                 console.log(input.name);
    104 
    105 
    106                 if (input1 && input.name === 'condtional_logic') {
     102
     103
     104                if (input1 && input.value === 'conditional_logic') {
    107105
    108106
    109107                    if(input1.checked || !input1.checked){
    110108
    111                         jQuery('input[name="condtional_logic"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
     109                        jQuery('input[value="conditional_logic"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
    112110                    }
    113111                }
    114112               
    115                 else if (input2 && input.name === 'country_code') {
     113                else if (input2 && input.value === 'country_code') {
    116114
    117115                    if(input2.checked || !input2.checked){
    118116
    119                         jQuery('input[name="country_code"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
    120                     }
    121                 }
    122 
    123                 else if (input3 && input.name === 'form_input_mask') {
     117                        jQuery('input[value="country_code"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
     118                    }
     119                }
     120
     121                else if (input3 && input.value === 'form_input_mask') {
    124122
    125123                    if(input3.checked || !input3.checked){
    126124
    127                         jQuery('input[name="form_input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
    128                     }
    129                 }
    130 
    131                 else if (input4 && input.name === 'input_mask') {
     125                        jQuery('input[value="form_input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
     126                    }
     127                }
     128
     129                else if (input4 && input.value === 'input_mask') {
    132130
    133131                    if(input4.checked || !input4.checked){
    134132
    135                         jQuery('input[name="input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
     133                        jQuery('input[value="input_mask"]').parent().parent().parent().parent().parent().find(".button-primary").addClass('shake-effect');
    136134                    }
    137135                }
     
    154152            if (tooltip.style.display === 'block') {
    155153                tooltip.style.display = 'none';
    156 
    157154                let plugin_name = tooltip.textContent.replace('Activate Plugin', '');
    158155
    159                 tooltip.textContent = plugin_name; // Reset message
    160 
    161 
     156                tooltip.innerHTML = plugin_name; // Reset message
    162157            } else {
    163158                tooltip.style.display = 'block';
     
    201196            document.querySelectorAll('.cfkef-tooltip').forEach(tip => {
    202197                tip.style.display = 'none';
    203 
    204 
    205198                tip_message  = tip.textContent.replace('Activate Plugin', '');
    206199                tip.innerHTML = tip_message;
     
    244237                                    window.location.reload();
    245238                                }
    246                                
    247239                            },
    248240                            error: function () {
  • conditional-fields-for-elementor-form/trunk/class-conditional-fields-for-elementor-form.php

    r3379234 r3404010  
    44 * Plugin URI:https://coolplugins.net/
    55 * Description: The Conditional Fields for Elementor plugin add-on used to show and hide form fields based on conditional input values.
    6  * Version: 1.4.8
     6 * Version: 1.4.9
    77 * Author:  Cool Plugins
    88 * Author URI: https://coolplugins.net/?utm_source=cfef_plugin&utm_medium=inside&utm_campaign=author_page&utm_content=plugins_list
     
    2121}
    2222if ( ! defined( 'CFEF_VERSION' ) ) {
    23     define( 'CFEF_VERSION', '1.4.8' );
     23    define( 'CFEF_VERSION', '1.4.9' );
    2424}
    2525/*** Defined constent for later use */
     
    7777        }
    7878
     79        private function is_field_enabled($field_key) {
     80            $enabled_elements = get_option('cfkef_enabled_elements', array());
     81            return in_array(sanitize_key($field_key), array_map('sanitize_key', $enabled_elements));
     82        }
     83
    7984        private function includes() {
    8085
     
    8691        public function cfef_register_new_form_actions($form_actions_registrar){
    8792
    88             if(get_option('condtional_logic', true)){
     93            if($this->is_field_enabled('conditional_logic')){
    8994
    9095                include_once( __DIR__ .  '/includes/class-conditional-fields-redirection.php' );
     
    98103         */
    99104        public function is_compatible() {
    100             add_action( 'admin_init', array( $this, 'is_elementor_pro_exist' ), 5 );
    101 
    102             if(get_option('condtional_logic', true)){
     105            // add_action( 'admin_init', array( $this, 'is_elementor_pro_exist' ), 5 );
     106
     107            if($this->is_field_enabled('conditional_logic')){
    103108
    104109
  • conditional-fields-for-elementor-form/trunk/readme.txt

    r3379234 r3404010  
    66Tested up to: 6.8.2
    77Requires PHP: 7.2
    8 Stable tag: 1.4.8
     8Stable tag: 1.4.9
    99
    1010License: GPLv2 or later
     
    232232
    233233== Changelog ==
     234
     235= 1.4.9 | Nov 27, 2025 =
     236* Fixed: Setting ID mismatch causing updates to not reflect in all versions.
    234237
    235238= 1.4.8 | Oct 16, 2025 =
Note: See TracChangeset for help on using the changeset viewer.