diff --git a/js/scripts_admin.js b/js/scripts_admin.js index 228b5fb..cd18f6d 100755 --- a/js/scripts_admin.js +++ b/js/scripts_admin.js @@ -470,7 +470,7 @@ if (typeof(_wpcf7) != 'undefined' || typeof(wpcf7) != 'undefined') { } function updateAvailableGroupsAndFields() { - const formCode = wpcf7cf.$formEditor.val(); + const formCode = wpcf7cf.$formEditor.text(); const [ fields, groups ] = scanFormTags(formCode); $temp = jQuery(wpcf7cf.template_for_condition_fields_with_one_and_rule); @@ -562,4 +562,4 @@ if (typeof(_wpcf7) != 'undefined' || typeof(wpcf7) != 'undefined') { }) -} \ No newline at end of file +}