• Resolved robotor

    (@robotor)


    Problem:
    Immediately after page load, the values in the calculated fields disappear. It seems like a javascript issue, but everything worked the other day. If I reload the page I can sometimes briefly see the values before they vanish.

    The only recent change was a change of the page slug and possibly some other plugin and theme updates… but I did try wordpress’ troubleshooting mode where all other plugins are disabled – same issue.

    There may have been a theme update, but like I said earlier, the same issue happens when I disable all other plugins and switch to the default wordpress theme.

    thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @robotor

    The issue is cause by the code of your form. The code entered into the fieldname11 field is assigning the value of the “baseline” variable to the fieldname12 field. But if the “baseline” variable is empty or does not exists, you force the reevaluation of the equation for no value.

    The correct would be edit the code of the fieldname11 field as follows to check if the variable exists or not:

    
    Enter the number of members in your plan:
    
    <script>
    fbuilderjQuery(document).one('showHideDepEvent', function(){
    if(typeof baseline != 'undefined')	
    fbuilderjQuery('[id*="fieldname12_"]').val(baseline).change();
    });
    </script> 
    

    Best regards.

    Thread Starter robotor

    (@robotor)

    Thank you kindly!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘form field values disappearing after page load’ is closed to new replies.