Shortcode inputs not working | WordPress.org

[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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer