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