{"id":19015940,"date":"2026-09-09T19:16:58","date_gmt":"2026-09-09T19:16:58","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/forminator-calculation-fields-cause-fatal-error-pdf-generation-failure\/"},"modified":"2026-09-09T19:16:58","modified_gmt":"2026-09-09T19:16:58","slug":"forminator-calculation-fields-cause-fatal-error-pdf-generation-failure","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/forminator-calculation-fields-cause-fatal-error-pdf-generation-failure\/","title":{"rendered":"Forminator Calculation Fields Cause Fatal Error \/ PDF Generation Failure"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>Hello,<br \/><br \/>I am using <strong>PDF for Forminator Forms + Drag and Drop Template Builder version 7.2.1<\/strong> with Forminator.<br \/><br \/>The PDF integration works correctly with normal Forminator fields such as radio buttons, checkboxes, names, addresses, and text fields.<br \/><br \/>However, when I add a Forminator Calculation field merge tag such as <code>{calculation-1}<\/code> to the PDF template, the form submission\/PDF generation fails.<br \/><br \/>The Calculation field itself works correctly in Forminator. The calculated amount displays correctly on the form and also appears correctly in Forminator email notifications.<br \/><br \/>The problem occurs specifically when the Calculation field merge tag is used in the PDF template.<br \/><br \/>I tested multiple Calculation fields. When a Calculation merge tag is present in the PDF template, processing fails. When I remove the Calculation merge tag, the form submits successfully, both email notifications are sent, and the PDF is generated successfully.<br \/><br \/>The PHP error trace showed YeePDF calling <code>forminator_replace_form_data<\/code>, followed by Forminator <code>forminator_get_value_from_form_entry(...)<\/code>, with the fatal occurring through:<br \/><br \/><code>wp-content\/plugins\/forminator\/library\/helpers\/helper-fields.php<\/code> around line 915<br \/><br \/>and YeePDF's Forminator integration:<br \/><br \/><code>forminator\/index.php<\/code><br \/><br \/>Is there a supported method for inserting the result of a Forminator Calculation field into a YeePDF template? If so, could you please provide the correct method or merge-tag syntax?<br \/><br \/>If Calculation fields should work using the standard <code>{calculation-x}<\/code> merge tags, this appears to be a compatibility issue. I can provide additional error-log information and reproduction steps if needed.<br \/><br \/>Thank you.<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-19015940","topic","type-topic","status-publish","hentry","topic-tag-fatal-error","topic-tag-pdf"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19015940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19015940\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19015940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}