{"id":47808,"date":"2025-04-24T08:31:25","date_gmt":"2025-04-24T08:31:25","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=troubleshooting&#038;p=47808"},"modified":"2025-07-11T13:28:39","modified_gmt":"2025-07-11T13:28:39","slug":"cannot-hide-widget-if-meta-field-is-empty","status":"publish","type":"troubleshooting","link":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/","title":{"rendered":"Cannot Hide a Widget if a Meta Field Is Empty"},"content":{"rendered":"\n<p>Although this setup seems to check for the presence of content in the meta field, it does not operate correctly.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/wrong-setup.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/wrong-setup-1024x640.webp\" alt=\"wrong setup\" class=\"wp-image-47809\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/wrong-setup-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/wrong-setup-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/wrong-setup-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/wrong-setup-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/wrong-setup-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/wrong-setup.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Please note that a different condition should be used to make <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/dynamic-visibility-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Visibility<\/strong><\/a> work properly.\u00a0<\/p>\n\n\n\n<p>As an example, we will try to hide the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field<\/strong><\/a> widget when the \u201cAdditional Info\u201d <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#textarea\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Textarea <\/strong>meta field<\/a> is empty.\u00a0<\/p>\n\n\n\n<p>So, let\u2019s proceed to the <strong>Dynamic Visibility<\/strong> section in the <strong>Advanced<\/strong> tab and turn on the <strong>Enable <\/strong>toggle.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-visibility-tab-opened.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-visibility-tab-opened-1024x640.webp\" alt=\"dynamic visibility tab opened\" class=\"wp-image-47810\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-visibility-tab-opened-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-visibility-tab-opened-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-visibility-tab-opened-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-visibility-tab-opened-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-visibility-tab-opened-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-visibility-tab-opened.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In the <strong>Visibility condition type <\/strong>field, we leave the \u201cShow element if condition met\u201d option.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/show-element-if-condition-met-option.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/show-element-if-condition-met-option-1024x640.webp\" alt=\"show element if condition met option\" class=\"wp-image-47811\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/show-element-if-condition-met-option-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/show-element-if-condition-met-option-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/show-element-if-condition-met-option-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/show-element-if-condition-met-option-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/show-element-if-condition-met-option-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/show-element-if-condition-met-option.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Let\u2019s set up the \u0441ondition now. From the <strong>Condition <\/strong>dropdown, select the \u201cRegexp\u201d option.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/regexp-option-chosen-in-the-condition-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/regexp-option-chosen-in-the-condition-field-1024x640.webp\" alt=\"regexp option chosen in the condition field\" class=\"wp-image-47812\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/regexp-option-chosen-in-the-condition-field-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/regexp-option-chosen-in-the-condition-field-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/regexp-option-chosen-in-the-condition-field-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/regexp-option-chosen-in-the-condition-field-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/regexp-option-chosen-in-the-condition-field-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/regexp-option-chosen-in-the-condition-field.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Click the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/dynamic-tags-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Tag<\/strong><\/a>\u201d icon on the right side of the <strong>Field <\/strong>selector. Scroll down to the <strong>JetEngine <\/strong>section and choose the \u201cCustom Field\u201d<strong> <\/strong>option.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-tag-dropdown-menu-with-custom-field-option-visible.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-tag-dropdown-menu-with-custom-field-option-visible-1024x640.webp\" alt=\"dynamic tag dropdown menu with custom field option visible\" class=\"wp-image-47813\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-tag-dropdown-menu-with-custom-field-option-visible-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-tag-dropdown-menu-with-custom-field-option-visible-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-tag-dropdown-menu-with-custom-field-option-visible-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-tag-dropdown-menu-with-custom-field-option-visible-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-tag-dropdown-menu-with-custom-field-option-visible-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-tag-dropdown-menu-with-custom-field-option-visible.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>In a newly appeared pop-up, pick the meta field from the dropdown (the \u201cAdditional Info\u201d field in our case).<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/custom-field-selected-in-the-regexp-condition-settings.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/custom-field-selected-in-the-regexp-condition-settings-1024x640.webp\" alt=\"custom field selected in the regexp condition settings\" class=\"wp-image-47814\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/custom-field-selected-in-the-regexp-condition-settings-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/custom-field-selected-in-the-regexp-condition-settings-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/custom-field-selected-in-the-regexp-condition-settings-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/custom-field-selected-in-the-regexp-condition-settings-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/custom-field-selected-in-the-regexp-condition-settings-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/custom-field-selected-in-the-regexp-condition-settings.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>The last point \u2014 we put \u201c.+\u201d in the <strong>Value <\/strong>field.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/value-is-set-in-the-value-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/value-is-set-in-the-value-field-1024x640.webp\" alt=\".+ value is set in the value field\" class=\"wp-image-47815\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/value-is-set-in-the-value-field-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/value-is-set-in-the-value-field-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/value-is-set-in-the-value-field-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/value-is-set-in-the-value-field-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/value-is-set-in-the-value-field-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/value-is-set-in-the-value-field.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>When working with <em>JetEngine <\/em>features like <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/query-builder-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Custom Queries<\/strong><\/a>, <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/dynamic-visibility-overview\/#conditions\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Visibility Conditions<\/strong><\/a>, or <a href=\"https:\/\/crocoblock.com\/plugins\/jetsmartfilters\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Filters<\/strong><\/a>, you might come across the regular expression \u201c.+\u201d, where the \u201c.\u201d (dot) matches any single character, except line breaks, and \u201c+\u201d means one or more of the preceding element.<\/p>\n\n\n\n<p>So, \u201c.+\u201d matches any non-empty value \u2014 it\u2019s useful when you want to check if a field contains at least one character (not just spaces or an empty string).<\/p>\n\n\n\n<p>We leave the <strong>Context <\/strong>and <strong>Data Type<\/strong> fields with their default settings.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">Please, be aware that the described setup works for the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#text\">Text<\/a>,\u201d \u201cTextarea,\u201d \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#number\">Number<\/a>,\u201d \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#checkbox\">Checkbox<\/a>,\u201d \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#select\">Select<\/a>,\u201d and \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#radio\">Radio<\/a>\u201d meta field types.<\/p><\/div><\/div>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/save-as-array-toggle-is-activated.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/save-as-array-toggle-is-activated-1024x640.webp\" alt=\"save as array toggle is activated\" class=\"wp-image-47816\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/save-as-array-toggle-is-activated-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/save-as-array-toggle-is-activated-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/save-as-array-toggle-is-activated-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/save-as-array-toggle-is-activated-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/save-as-array-toggle-is-activated-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/save-as-array-toggle-is-activated.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n<div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">When setting up <strong>Dynamic Visibility<\/strong> based on the \u201cCheckbox\u201d meta field\u2019s content, ensure that the <strong>Save as array<\/strong> option is enabled. If this field is completed in the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-post-type-overview\/\"><strong>Custom Post Type<\/strong><\/a> and the <strong>Save as array toggle<\/strong> is activated, the field will be reset, and the data will need to be filled in again.<\/p><\/div><\/div>\n\n\n\n<p>Additionally, it\u2019s worth noting that the setup of the <strong>Dynamic Visibility<\/strong> feature will be different when the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#switcher\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Switcher<\/strong><\/a> field is used as the source for the content.\u00a0<\/p>\n\n\n\n<p>In this case, the \u201cSwitcher enabled\u201d <strong>Condition <\/strong>should be selected.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/switcher-enabled-condition-selected-for-the-switcher-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/switcher-enabled-condition-selected-for-the-switcher-field-1024x640.webp\" alt=\"switcher enabled condition selected for the switcher field\" class=\"wp-image-47817\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/switcher-enabled-condition-selected-for-the-switcher-field-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/switcher-enabled-condition-selected-for-the-switcher-field-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/switcher-enabled-condition-selected-for-the-switcher-field-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/switcher-enabled-condition-selected-for-the-switcher-field-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/switcher-enabled-condition-selected-for-the-switcher-field-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/switcher-enabled-condition-selected-for-the-switcher-field.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Choose the needed custom field in the same way we described above.<\/p>\n\n\n\n<p>Now, let\u2019s see how it works on the front end.&nbsp;<\/p>\n\n\n\n<p>We will check two posts: one has content added to the \u201cAdditional Info\u201d meta field and the \u201cCertified Doctor\u201d <strong>Switcher <\/strong>enabled, and the second post doesn\u2019t have any of that.\u00a0<\/p>\n\n\n\n<p>For this post, we see the<strong> Dynamic Fields<\/strong> display the data.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/additional-info-and-certified-doctor-displayed-on-the-front-end.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/additional-info-and-certified-doctor-displayed-on-the-front-end-1024x640.webp\" alt=\"additional info and certified doctor displayed on the front end\" class=\"wp-image-47818\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/additional-info-and-certified-doctor-displayed-on-the-front-end-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/additional-info-and-certified-doctor-displayed-on-the-front-end-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/additional-info-and-certified-doctor-displayed-on-the-front-end-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/additional-info-and-certified-doctor-displayed-on-the-front-end-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/additional-info-and-certified-doctor-displayed-on-the-front-end-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/additional-info-and-certified-doctor-displayed-on-the-front-end.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>The second post has the \u201cAdditional Info\u201d meta field empty and the <strong>Switcher <\/strong>turned off, so the widgets are hidden.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/widgets-are-hidden-on-the-front-end.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/widgets-are-hidden-on-the-front-end-1024x640.webp\" alt=\"widgets are hidden on the front end\" class=\"wp-image-47819\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/widgets-are-hidden-on-the-front-end-1024x640.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/widgets-are-hidden-on-the-front-end-300x188.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/widgets-are-hidden-on-the-front-end-768x480.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/widgets-are-hidden-on-the-front-end-1536x960.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/widgets-are-hidden-on-the-front-end-600x375.webp 600w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/widgets-are-hidden-on-the-front-end.webp 1824w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/div>\n\n\n\n<p>Now you know how to hide widgets according to the meta fields\u2019 content with the help of the <strong>Dynamic Visibility<\/strong> functionality from the <em>JetEngine <\/em>plugin for WordPress.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to show or hide Elementor widgets according to the meta fields&#8217; content.<\/p>\n","protected":false},"author":9,"featured_media":0,"template":"","troubleshoot-tags":[376],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cannot Hide a Widget if a Meta Field Is Empty \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to show or hide Elementor widgets according to the meta fields&#039; content with the help of the JetEngine plugin for WordPress.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cannot Hide a Widget if a Meta Field Is Empty \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to show or hide Elementor widgets according to the meta fields&#039; content with the help of the JetEngine plugin for WordPress.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-11T13:28:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/wrong-setup-1024x640.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/\",\"name\":\"Cannot Hide a Widget if a Meta Field Is Empty \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2025-04-24T08:31:25+00:00\",\"dateModified\":\"2025-07-11T13:28:39+00:00\",\"description\":\"Learn how to show or hide Elementor widgets according to the meta fields' content with the help of the JetEngine plugin for WordPress.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Troubleshooting\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cannot Hide a Widget if a Meta Field Is Empty\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cannot Hide a Widget if a Meta Field Is Empty \u2014 JetEngine | Crocoblock","description":"Learn how to show or hide Elementor widgets according to the meta fields' content with the help of the JetEngine plugin for WordPress.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/","og_locale":"en_US","og_type":"article","og_title":"Cannot Hide a Widget if a Meta Field Is Empty \u2014 JetEngine | Crocoblock","og_description":"Learn how to show or hide Elementor widgets according to the meta fields' content with the help of the JetEngine plugin for WordPress.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/","og_site_name":"Help Center","article_modified_time":"2025-07-11T13:28:39+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/wrong-setup-1024x640.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/","url":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/","name":"Cannot Hide a Widget if a Meta Field Is Empty \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2025-04-24T08:31:25+00:00","dateModified":"2025-07-11T13:28:39+00:00","description":"Learn how to show or hide Elementor widgets according to the meta fields' content with the help of the JetEngine plugin for WordPress.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/cannot-hide-widget-if-meta-field-is-empty\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Troubleshooting","item":"https:\/\/crocoblock.com\/knowledge-base\/troubleshooting\/"},{"@type":"ListItem","position":3,"name":"Cannot Hide a Widget if a Meta Field Is Empty"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/troubleshooting\/47808"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/troubleshooting"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/troubleshooting"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/9"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=47808"}],"wp:term":[{"taxonomy":"troubleshoot-tags","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/troubleshoot-tags?post=47808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}