• Resolved sshotwell

    (@sshotwell)


    Thank you for this wonderful plugin! I’ve been learning a lot about CSS, but I’m still new to it, so I hope you can help me with this. I know that you can hide a field if the field is blank using this bit of code:

    .pdb-single-flex .flex-field.blank-field {
    display: none;
    }

    but is there a way to also hide the group’s title if all the fields are blank? I’m trying to make a printable page that looks nice but I’m trying to fit everything on one page, so removing the titles would save a lot of room.

    Please note: the link is to a test page, just to show what I mean. There a LOT of field groups and different fields in each one because my company is using this more as a way to save information about projects. While this test page does fit on one page, when everything is filled out normally, it easily spans a page and a half, even with the small font size.

    Thank you,
    Skye

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Thanks for your question, this is something I will need to add to an upcoming release, it’s a good idea. This will work by adding a classname to the group element for a group that has only empty fields.

    As it is, it would be pretty complicated for you to do it in the template, since you would need to determine that all the fields in the group were empty before printing the group element.

    Thread Starter sshotwell

    (@sshotwell)

    Thank you for your response. I look forward to it potentially being added in the future! In the meantime, I will hide all the group titles on the print page to save room, and just have my field labels be a little more descriptive to compensate. I did find early on as I was tinkering with it that it was probably more complicated than I thought it would be! I’ll mark this as resolved- for now! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Group Titles if Field is Empty?’ is closed to new replies.