[ad_1]
Hello @samster11
I assume you have been using an outdated version of the CFF. Some time ago, we modified the module that manages the global variables generated from the additional form shortcode attributes, and the shortcodes for variables.
In earlier plugin versions, it created global variables using the variable names. However, this led to issues. If you input an internal browser variable such as window, document, location, or similar, it could overwrite the variable and impact the website.
In the latest plugin updates, it generates the cff_var object as a global variable, and the shortcode attributes are converted into properties of the cff_var object.
So, your code must be edited as follows:
<script>
fbuilderjQuery(document).one('showHideDepEvent', function(){
fbuilderjQuery('[id*="fieldname1_"]').val(cff_var['price']).change();
});
</script>Best regards.
