• I see where you can add conditional shortcodes to display something specific. I get that. But I need to completely hide that item. You had an earlier post about “hiding number fields” but it really didn’t go into detail on how to hide it. The page here CONDITIONAL LOGIC SHORTCODES only discusses how to display something in it’s place, not to remove the line item all together. This screen I’m sharing shows the issues I’m having. Items circled in red should be hidden since the value is zero.SCREENSHOT.

    • This topic was modified 5 years, 1 month ago by prdg1.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Hi there,

    As mentioned in your other post, Gravity PDF will display the exact same information as Gravity Forms does on the Entry Details page when handling product fields, so to effect the PDF output for the products you need to effect Gravity Forms. With that in mind, this question is outside the scope of our support and would be better directed to Gravity Forms.

    If I had to personally hide zero value line-items, I’d look at manipulating the product data that Gravity Forms saves during form submission using code. I would use the gform_pre_submission filter and unset any $_POST data for products that have a zero value. There may be a better way, so it’s worth checking directly with Gravity Forms.

    Thread Starter prdg1

    (@prdg1)

    Gotcha. I just need to figure out how to write a statement to remove a field with a value of zero dollars when it’s submitted. At that point really Gravity PDF just displays the data provided from Gravity forms. Makes sense and points me back to where I need to go. Back to the research! Thanks for the clarification.

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    No problem. If you do get that code written, please do share so others might benefit as well ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide values of “0” in price fields’ is closed to new replies.