• Resolved wagumbi

    (@wagumbi)


    The plugin was working great. Now I see the following:

    form_structure_1=[[{“form_identifier”:””,”name”:”fieldname3″,”shortlabel”:””,”

    It is basically one very long line in a box. I have tried the Direct display but no configuration changes seem to work.

    Thanks in advance for your help

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

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

    (@codepeople)

    Hello @wagumbi,

    The plugin inserts the piece of code you’re referring as follows:

    <pre style="display:none;"><!--noptimize--><script>form_structure_1=...</script><!--/noptimize--></pre>

    However, there is another plugin, or the theme active in your WordPress that is removing the style attribute in the pre tag, and the script tags around the code, and transforms it as follows:

    <pre>form_structure_1=...</pre>

    Please, try the following modification.

    – Open the “/wp-content/plugins/calculated-fields-form/inc/cpcff_public_int.inc.php” file with the text editor of your choice.

    – Go to the piece of code: <script>, and edit it as follows: <script type="text/javascript">

    and please, let me know if this change solves the conflict in your website.

    Best regards.

    Thread Starter wagumbi

    (@wagumbi)

    Thanks for the speedy reply. Unfortunately it did not fix the issue. Just to check, this is the changed code:

    <form name=”<?php echo $form_data[ 1 ][ ‘formid’ ]; ?>” id=”<?php echo $form_data[ 1 ][ ‘formid’ ]; ?>” action=”?” method=”post” enctype=”multipart/form-data” <?php if(!empty($form_data[1][0]) && !empty($form_data[1][0]->persistence)) echo ‘class=”persist-form”‘; ?>><input type=”hidden” name=”cp_calculatedfieldsf_id” value=”<?php echo $id; ?>” />

    <!--noptimize--><script type="text/javascript">form_structure_<?php echo CPCFF_MAIN::$form_counter; ?>=<?php print str_replace( array( "\n", "\r" ), " ", ((version_compare(CP_CFF_PHPVERSION,"5.3.0")>=0)?json_encode($form_data, JSON_HEX_QUOT|JSON_HEX_TAG):json_encode($form_data)) ); ?>;</script><!--/noptimize-->
    Plugin Author codepeople

    (@codepeople)

    Hello,

    Could you create a ticket in my private website for checking the issue in detail, please?

    https://cff.dwbooster.com/contact-us

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not Displaying Properly’ is closed to new replies.