Title: Shortcode inputs not working
Last modified: June 18, 2024

---

# Shortcode inputs not working

 *  Resolved [samster11](https://wordpress.org/support/users/samster11/)
 * (@samster11)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/shortcode-inputs-not-working/)
 * Hello,
 * I used to be able to add an html so that I can dynamically change parameters 
   in the shortcode. e.g.
 * [CP_CALCULATED_FIELDS id=”11″ price=”1200000”] by adding this html but it looks
   like it stopped working once I updated the site / plugins. What could be the 
   issue?
 *     ```wp-block-code
       <script>fbuilderjQuery(document).one('showHideDepEvent', function(){fbuilderjQuery('[id*="fieldname1_"]').val(price).change();});</script>
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/shortcode-inputs-not-working/#post-17834203)
 * Hello [@samster11](https://wordpress.org/support/users/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:
 *     ```wp-block-code
       <script>fbuilderjQuery(document).one('showHideDepEvent', function(){fbuilderjQuery('[id*="fieldname1_"]').val(cff_var['price']).change();});</script>
       ```
   
 * Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Shortcode inputs not working’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/shortcode-inputs-not-working/#post-17834203)
 * Status: resolved