{"id":8253580,"date":"2016-10-05T05:39:22","date_gmt":"2016-10-05T05:39:22","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/hide-group-if-a-field-is-empty\/"},"modified":"2016-10-05T05:46:53","modified_gmt":"2016-10-05T05:46:53","slug":"hide-group-if-a-field-is-empty","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/hide-group-if-a-field-is-empty\/","title":{"rendered":"Hide group if a field is empty?"},"content":{"rendered":"<p>Hi there, I&#8217;d like to create group form sections. Is it possible to have a conditional group only display if certain fields are not empty?<\/p>\n<p>Example:<br \/>\nif &#8220;your-email&#8221; equals &lt;no value&gt; then hide &#8220;this-group&#8221;<\/p>\n<p>EDIT: Found how to do it thanks.<br \/>\nif &#8220;your-email&#8221; not equals &lt;blank value&gt; then show &#8220;this-group&#8221;<\/p>\n","protected":false},"template":"","class_list":["post-8253580","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8253580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8253580\/revisions"}],"predecessor-version":[{"id":8253598,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8253580\/revisions\/8253598"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8253580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}