Title: Hide Empty Fields in Single Record
Last modified: March 15, 2019

---

# Hide Empty Fields in Single Record

 *  Resolved [elizjones](https://wordpress.org/support/users/elizjones/)
 * (@elizjones)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/hide-empty-fields-in-single-record/)
 * When displaying a single record is there a way to hide fields that are empty?
 * We are using this for an employee database that the public can access (via QR
   code, directly to the single record). We capture information that may be required
   for some employees and not others, and in that case we don’t want to show a blank
   field.
 * Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/hide-empty-fields-in-single-record/#post-11321533)
 * This can be achieved by using a CSS rule that hides empty fields. In the display
   fields with no data are given a class and you can use that class to hide those
   fields. For example:
 *     ```
       .pdb-single .blank-field {
          display: none;
       }
       ```
   
 * rules like this can go in the Custom CSS setting of the plugin.
 *  Thread Starter [elizjones](https://wordpress.org/support/users/elizjones/)
 * (@elizjones)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/hide-empty-fields-in-single-record/#post-11323696)
 * Amazing! Thank you!
 *  Thread Starter [elizjones](https://wordpress.org/support/users/elizjones/)
 * (@elizjones)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/hide-empty-fields-in-single-record/#post-11324315)
 * I’ve got a follow up to this question:
 * Is there a way to hide the Group Title if all of the fields in that group are
   blank?
 * I don’t know much CSS, and the best I could do is hide the group title in all
   instances, but it doesn’t make much sense when some of the fields are displaying.
 * Thanks again!
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/hide-empty-fields-in-single-record/#post-11327418)
 * Did you look for a classname on the group wrapper that tells when the group is
   empty? Should be ‘pdb-group-novalues’ Use that to hide the whole group.
 *  Thread Starter [elizjones](https://wordpress.org/support/users/elizjones/)
 * (@elizjones)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/hide-empty-fields-in-single-record/#post-11332426)
 * Thanks Roland! That worked perfectly!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Hide Empty Fields in Single Record’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [elizjones](https://wordpress.org/support/users/elizjones/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/hide-empty-fields-in-single-record/#post-11332426)
 * Status: resolved