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

Consent field showing up in Core PDF when not checked #1450

Closed jakejackson1 closed 1 year ago

jakejackson1 commented 1 year ago

Description If a Consent field has a value in the "Description" setting, it will always be considered not empty by Gravity PDF, even if a user didn't check the consent checkbox. This is contrary to how Gravity Forms handles consent fields in the Entry Details page, which always treats unticked Consent fields as empty.

Step To Reproduce Steps to reproduce the behavior:

  1. Add a Consent field to your form and include a value in the "Description" setting.
  2. Add a Name field to your form and then save.
  3. Setup a Core PDF on the form and ensure the Show Empty Fields option is disabled
  4. Submit the form and leave the Consent field unchecked
  5. View the PDF

Expected behavior The Consent field would not be shown in the PDF. Currently, it is showing.

Screenshots

Screenshot 2023-02-17 at 9 23 16 am
jestonihpi commented 1 year ago

Replicated this issue on my end @jakejackson1 image