Title: Variable Not Showing
Last modified: October 31, 2022

---

# Variable Not Showing

 *  Resolved [escribbles](https://wordpress.org/support/users/escribbles/)
 * (@escribbles)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/variable-not-showing-2/)
 * When Delay JavaScript execution is enabled on WP Rocket the variable is no longer
   used on the posts and the forms default to 0. Do you know what JavaScript files
   need to be excluded in WP Rocket for the variables to work? Or do you know how
   to fix this issue?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/variable-not-showing-2/#post-16149630)
 * Hi [@escribbles](https://wordpress.org/support/users/escribbles/)
 * Thank you very much for using our plugin, could you please give me more details,
   which variable are you referring to?
 * Best regards.
 *  Thread Starter [escribbles](https://wordpress.org/support/users/escribbles/)
 * (@escribbles)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/variable-not-showing-2/#post-16150270)
 * I am using the following shortcode for my pages [CP_CALCULATED_FIELDS varname
   =”5″ id=”14″] in this instance the variable would be 5.
 * On this page [https://www.convertwhiz.com/5-fahrenheit-to-celsius/](https://www.convertwhiz.com/5-fahrenheit-to-celsius/)
   the starting value for Fahrenheit should be 5, but when Delay JavaScript execution
   is enabled on WP Rocket it defaults to 0. When I turn that function off the variable
   works and it shows 5.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/variable-not-showing-2/#post-16150304)
 * Hello [@escribbles](https://wordpress.org/support/users/escribbles/)
 * Your form is loaded, and its equations are evaluated before “WP Rocket” includes
   the delayed blocks of code. A possible solution is to evaluate the equations 
   after completing the page load.
 * Please, insert an “HTML Content” field in the form, and enter the following piece
   of code as its content:
 *     ```
       <script>
       jQuery(window).on('load', function(){
       EVALEQUATIONS(jQuery('#cp_calculatedfieldsf_pform_1')[0]);
       });
       </script>
       ```
   
 * Best regards.
 *  Thread Starter [escribbles](https://wordpress.org/support/users/escribbles/)
 * (@escribbles)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/variable-not-showing-2/#post-16150400)
 * just wondering if there is a specific js file I can exclude from the delay for
   the variable to show and be used as the initial value
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/variable-not-showing-2/#post-16150449)
 * Hello [@escribbles](https://wordpress.org/support/users/escribbles/)
 * The variables are not loaded from files. Since these variables are generated 
   dynamically, the plugin creates them into inline script blocks, like:
 * `<script>varname=5;</script>`
 * So, an alternative if you don’t want to edit the equation would be to exclude
   the inline script block with `varname` from WP Rocket settings.
 * Best regards.
 *  Thread Starter [escribbles](https://wordpress.org/support/users/escribbles/)
 * (@escribbles)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/variable-not-showing-2/#post-16150574)
 * Thank you so much! I added varname to the exclusions in WP Rocket and that solved
   the issue.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Variable Not Showing’ 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/)

 * 9 replies
 * 2 participants
 * Last reply from: [escribbles](https://wordpress.org/support/users/escribbles/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/variable-not-showing-2/#post-16150574)
 * Status: resolved