GravityPDF / gravity-pdf

Gravity PDF is a GPLv2-licensed WordPress plugin that allows you to automatically generate, email and download PDF documents using Gravity Forms.
https://gravitypdf.com
89 stars 21 forks source link

Page Field: Conditional Logic and Exclude CSS not Respected #1463

Closed jakejackson1 closed 2 months ago

jakejackson1 commented 1 year ago

Description If a multipage form contains a conditional Page Break field, and the Show Page Names PDF setting is enabled in Core/Universal templates, the Page Title should not be displayed if the conditional logic does not pass. Also, if the CSS class "exclude" is used the Page Title should never be displayed in the PDF.

Step To Reproduce Steps to reproduce the behavior:

  1. Create a multi-page Gravity Form and add a page title to each page in the first Page Break field
  2. In one of the Page Break fields enable conditional logic with a condition that cannot be met
  3. In another Page Break field add the CSS class "exclude"
  4. Configure a Core PDF and enable the Show Page Names PDF setting
  5. Submit a test entry
  6. View the PDF

Expected behavior The Page Break Titles should not be added to the PDF for the associated Page Break fields (Step 2 and 3).