GravityPDF / gravity-pdf

Gravity PDF is the ultimate third-party PDF automation tool for generating digital PDFs using the popular form-builder plugin Gravity Forms.
https://gravitypdf.com
89 stars 20 forks source link

Add Entry Meta as PDF Conditional Logic Options #1501

Closed jakejackson1 closed 9 months ago

jakejackson1 commented 9 months ago

Description

This PR adds a bunch of new condition options available for PDFs, such as:

Resolves #1404

Testing instructions

  1. Reload a form with a bunch of entries which varies each of the above items
  2. Setup PDFs on the form with unique conditional logic combinations
  3. Verify the correct PDF is active for the entry

Screenshots

CleanShot 2024-02-27 at 13 03 07

Checklist:

Additional Comments

Props to the Gravity Wiz team for creating the original snippet this code is based on, and licensing it under GPLv2: https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-conditional-logic-entry-meta.php

codecov[bot] commented 9 months ago

Codecov Report

Attention: Patch coverage is 94.20290% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 77.26%. Comparing base (692feee) to head (9fea008).

Files Patch % Lines
src/Helper/Helper_Data.php 94.01% 10 Missing :warning:
src/Controller/Controller_Form_Settings.php 93.54% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #1501 +/- ## =============================================== + Coverage 76.99% 77.26% +0.26% =============================================== Files 243 243 Lines 12516 12716 +200 Branches 370 370 =============================================== + Hits 9637 9825 +188 - Misses 2871 2883 +12 Partials 8 8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.