Balasan Ke: Setelah memperbarui Elementor v3.29, semua bidang kondisional muncul secara default

Balasan Ke: Setelah memperbarui Elementor v3.29, semua bidang kondisional muncul secara default

by

in

Hi Jyoti, Thanks for your feedback. I forgot to mention that I also modified the class-create-conditional-fields.php file to include the data-logic attribute manually.

Specifically, I replaced the original template output with the following code:

       $condition = count( $logic_object ) > 0 ? wp_json_encode( $logic_object ) : '';if ( ! empty( $condition ) ) {
if ( is_object( $widget ) && method_exists( $widget, 'get_id' ) ) {
$form_id = $widget->get_id();
}
$template_id = 'cfef_logic_data_' . $form_id; $encoded_json = base64_encode( wp_json_encode( $logic_object ) );
echo '<template id="' . esc_attr( $template_id ) . '" class="cfef_logic_data_js" data-form-id="' . esc_attr( $form_id ) . '" data-logic="' . esc_attr( $encoded_json ) . '"></template>'; }

source


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from Wordpress supported for Telkom University

Subscribe now to keep reading and get access to the full archive.

Continue reading