Home › Toolset Professional Support › [Resolved] Conditional fields does not work
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 9 replies, has 2 voices.
Last updated by michelL 2 years, 4 months ago.
Assisted by: Shane.
My Conditional fields does not work correct.
At first they worked fine but after installing wpstackable they don't seem to work.
It is not shown at sauna.
Hi Michel,
Thank you for getting in touch.
Can you enable the debugging on the conditional by toggling the debug switch on and then send me the debug output that is displaying on the frontend.
Thanks,
Shane
{"core":{"Wordpress":{"Multisite":"No","SiteURL":"https:\/\/heerlijkhuisjehuren.nl","HomeURL":"https:\/\/heerlijkhuisjehuren.nl","Version":"5.9.3","PermalinkStructure":"\/%postname%\/","PostTypes":"post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, oembed_cache, user_request, wp_block, wp_template, wp_template_part, wp_global_styles, wp_navigation, cred-form, cred-user-form, wp-types-group, wp-types-user-group, wp-types-term-group, gp_elements, stackable_temp_post, view, view-template, agent, huisje-huren, uitstapjes, inspiratie, wpa-helper, cred_rel_form","PostSatus":"publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, hidden"},"Server":{"jQueryVersion":"3.6.0","PHPVersion":"7.4.30","MySQLVersion":"5.5.5","ServerSoftware":"LiteSpeed"},"PHP":{"MemoryLimit":"256M","UploadMax":"256M","PostMax":"256M","TimeLimit":"300","MaxInputVars":"5000"}},"plugins":{"active_plugins":{"cred-frontend-editor\/plugin.php":{"Name":"Toolset Forms","PluginURI":"https:\/\/toolset.com\/home\/toolset-components\/?utm_source=plugin\u0026utm_medium=gui\u0026utm_campaign=forms#forms","Version":"2.6.13","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"cred-frontend-editor","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","Title":"Toolset Forms","AuthorName":"OnTheGoSystems"},"gp-premium\/gp-premium.php":{"Name":"GP Premium","PluginURI":"https:\/\/generatepress.com","Version":"2.1.2","Author":"Tom Usborne","AuthorURI":"https:\/\/generatepress.com","TextDomain":"gp-premium","DomainPath":"","Network":false,"RequiresWP":"5.2","RequiresPHP":"5.6","UpdateURI":"","Title":"GP Premium","AuthorName":"Tom Usborne"},"luckywp-table-of-contents\/luckywp-table-of-contents.php":{"Name":"LuckyWP Table of Contents","PluginURI":"https:\/\/theluckywp.com\/product\/table-of-contents\/","Version":"2.1.4","Author":"LuckyWP","AuthorURI":"https:\/\/theluckywp.com\/","TextDomain":"luckywp-table-of-contents","DomainPath":"\/languages","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","Title":"LuckyWP Table of Contents","AuthorName":"LuckyWP"},"searchwp-live-ajax-search\/searchwp-live-ajax-search.php":{"Name":"SearchWP Live Ajax Search","PluginURI":"https:\/\/searchwp.com\/","Version":"1.7.2","Author":"SearchWP, LLC","AuthorURI":"https:\/\/searchwp.com\/","TextDomain":"searchwp-live-ajax-search","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"5.6","UpdateURI":"","Title":"SearchWP Live Ajax Search","AuthorName":"SearchWP, LLC"},"stackable-ultimate-gutenberg-blocks-premium\/plugin.php":{"Name":"Stackable - Gutenberg Blocks (Premium)","PluginURI":"https:\/\/wpstackable.com","Version":"3.4.3","Author":"Gambit Technologies, Inc","AuthorURI":"http:\/\/gambit.ph","TextDomain":"stackable-ultimate-gutenberg-blocks","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"https:\/\/api.freemius.com","Title":"Stackable - Gutenberg Blocks (Premium)","AuthorName":"Gambit Technologies, Inc"},"toolset-blocks\/wp-views.php":{"Name":"Toolset Blocks","PluginURI":"https:\/\/toolset.com\/?utm_source=viewsplugin\u0026utm_campaign=views\u0026utm_medium=plugins-list-full-version\u0026utm_term=Visit plugin site","Version":"1.6.3","Author":"OnTheGoSystems","AuthorURI":"https:\/\/toolset.com","TextDomain":"toolset-blocks","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","Title":"Toolset Blocks","AuthorName":"OnTheGoSystems"},"toolset-maps\/toolset-maps-loader.php":{"Name":"Toolset Maps","PluginURI":"https:\/\/toolset.com\/documentation\/user-guides\/display-on-google-maps\/","Version":"2.0.12","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"toolset-maps","DomainPath":"\/languages","Network":false,"RequiresWP":"3.4","RequiresPHP":"5.6","UpdateURI":"","Title":"Toolset Maps","AuthorName":"OnTheGoSystems"},"types-access\/types-access.php":{"Name":"Toolset Access","PluginURI":"http:\/\/toolset.com\/home\/types-access\/?utm_source=accessplugin\u0026utm_campaign=access\u0026utm_medium=release-notes-plugins-list\u0026utm_term=Visit plugin site","Version":"2.8.14","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com\/","TextDomain":"types-access","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","Title":"Toolset Access","AuthorName":"OnTheGoSystems"},"types\/wpcf.php":{"Name":"Toolset Types","PluginURI":"https:\/\/toolset.com\/?utm_source=typesplugin\u0026utm_campaign=types\u0026utm_medium=plugins-list-full-version\u0026utm_term=Visit plugin site","Version":"3.4.16","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"types","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","Title":"Toolset Types","AuthorName":"OnTheGoSystems"},"wordpress-seo\/wp-seo.php":{"Name":"Yoast SEO","PluginURI":"https:\/\/yoa.st\/1uj","Version":"19.6","Author":"Team Yoast","AuthorURI":"https:\/\/yoa.st\/1uk","TextDomain":"wordpress-seo","DomainPath":"\/languages\/","Network":false,"RequiresWP":"5.9","RequiresPHP":"5.6.20","UpdateURI":"","Title":"Yoast SEO","AuthorName":"Team Yoast"},"wp-all-import-pro\/wp-all-import-pro.php":{"Name":"WP All Import Pro","PluginURI":"http:\/\/www.wpallimport.com\/","Version":"4.7.3","Author":"Soflyy","AuthorURI":"","TextDomain":"wp-all-import-pro","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","Title":"WP All Import Pro","AuthorName":"Soflyy"},"yoast-seo-settings-xml-csv-import\/yoast-addon.php":{"Name":"WP All Import - Yoast WordPress SEO Add-On","PluginURI":"http:\/\/www.wpallimport.com\/","Version":"1.1.8","Author":"Soflyy","AuthorURI":"","TextDomain":"yoast-seo-settings-xml-csv-import","DomainPath":"","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","Title":"WP All Import - Yoast WordPress SEO Add-On","AuthorName":"Soflyy"}},"mu_plugins":[],"dropins":[]},"theme":{"Name":"GeneratePress","ThemeURI":null,"Author":"\u003Ca href=\u0022https:\/\/tomusborne.com\u0022\u003ETom Usborne\u003C\/a\u003E","AuthorURI":null,"Template":"generatepress","Version":"3.1.3","TextDomain":null,"DomainPath":null},"extra-debug":{"access":{"rules":[],"settings":{"types":{"post":{"mode":"not_managed"},"page":{"mode":"permissions","permissions":{"publish":{"roles":[]},"delete_any":{"roles":[]},"edit_any":{"roles":[]},"delete_own":{"roles":[]},"edit_own":{"roles":[]},"read":{"roles":[]}}},"attachment":{"mode":"not_managed"},"property":{"mode":"not_managed"},"agent":{"mode":"not_managed"},"state":{"mode":"not_managed"},"city":{"mode":"not_managed"},"wpcf-custom-group-b3d6bcb67698065fc9090936e47478ce":{"permissions":{"delete_any":{"roles":["administrator"]},"edit_any":{"roles":["administrator"]},"read":{"roles":["administrator"]}},"mode":"not_managed","title":"Pages logged-in users can see"},"_custom_read_errors":{"wpcf-custom-group-b3d6bcb67698065fc9090936e47478ce":{"permissions":{"read":{"guest":"error_ct"}}},"wpcf-custom-group-31d46f38a3a2a0dc1d222a0fea3f6328":{"permissions":{"read":{"guest":"error_ct"}}}},"_custom_read_errors_value":{"wpcf-custom-group-b3d6bcb67698065fc9090936e47478ce":{"permissions":{"read":{"guest":"721"}}},"wpcf-custom-group-31d46f38a3a2a0dc1d222a0fea3f6328":{"permissions":{"read":{"guest":"681"}}}},"oembed_cache":{"mode":"not_managed"},"user_request":{"mode":"not_managed"},"scheduled-action":{"mode":"not_managed"},"wp_template":{"mode":"not_managed"},"wp_template_part":{"mode":"not_managed"},"wp_global_styles":{"mode":"not_managed"},"wp_navigation":{"mode":"not_managed"},"vakantiehuis":{"mode":"not_managed"},"provincies":{"mode":"not_managed"},"plaats":{"mode":"not_managed"},"huisje-huren":{"mode":"not_managed"},"uitstapjes":{"mode":"not_managed"},"kadence_lottie":{"mode":"not_managed"},"kb_icon":{"mode":"not_managed"},"gp_elements":{"mode":"not_managed"},"inspiratie":{"mode":"not_managed"},"stackable_temp_post":{"mode":"not_managed"}},"tax":[],"third_party":{"__CRED_CRED":{"__CRED_CRED_GROUP":{"permissions":{"use_any_attachment_with_cred_post_forms":{"roles":["administrator","editor","author"]},"delete_other_posts_with_cred":{"roles":["administrator","editor","author"]},"delete_own_posts_with_cred":{"roles":["administrator","editor","author","subscriber"]},"edit_other_posts_with_cred_679":{"roles":["administrator","editor","author"]},"edit_own_posts_with_cred_679":{"roles":["administrator","editor","author","subscriber"]},"create_posts_with_cred_663":{"roles":["administrator","editor","author","contributor","subscriber","guest"]}},"mode":"permissions"}},"__CRED_CRED_USER":{"__CRED_CRED_USER_GROUP":{"permissions":{"use_any_attachment_with_cred_user_forms":{"roles":["administrator","editor","author"]},"edit_other_users_with_cred_704":{"roles":["administrator"]},"edit_own_user_with_cred_704":{"roles":["administrator","subscriber"]},"create_users_with_cred_710":{"roles":["administrator","guest"]}},"mode":"permissions"}}}}},"types":{"add_resized_images_to_library":0,"images_remote":0,"images_remote_cache_time":"36","help_box":"by_types","hide_standard_custom_fields_metabox":"show","postmeta_unfiltered_html":"on","usermeta_unfiltered_html":"on"},"CRED":{"wizard":1,"cache_notice":1,"export_settings":1,"export_custom_fields":1,"autogeneration_email":{"subject":"Welcome new user","body":"[username]Your username is: %cuf_username%[\/username]\\n[nickname]Your nickname is: %cuf_nickname%[\/nickname]\\n[password]Your password is: %cuf_password%[\/password]"},"dont_load_cred_css":1},"views":{"views_template_loop_blog":0,"wpv_bootstrap_version":1,"wpv_custom_conditional_functions":[],"wpv_custom_inner_shortcodes":[],"wpv_debug_mode":"","wpv_debug_mode_type":"compact","wpv_map_plugin":0,"wpv_show_hidden_fields":"","wpv_saved_auto_detected_framework":"","wpv_codemirror_autoresize":"","wpv_enable_pagination_manage_history":0,"wpv_enable_parametric_search_manage_history":1,"support_spaces_in_meta_filters":0,"allow_views_wp_widgets_in_elementor":0,"default_user_editor":"gutenberg","default_wpa_editor":"gutenberg","manage_meta_transient_method":"cron","editing_experience":"mixed","views_template_for_agent":283,"view_cpt_state":"920","view_cpt_property":13,"view_cpt_agent":273,"views_template_conditions_for_property":[],"view_taxonomy_loop_property-type":13,"view_taxonomy_loop_tenure":13,"view_cpt_vakantiehuis":13,"views_template_conditions_for_agent":[],"views_template_for_property":292,"views_template_conditions_for_vakantiehuis":[],"views_template_conditions_for_city":[],"views_template_conditions_for_provincies":[],"view_cpt_provincies":920,"views_template_for_huisje-huren":24687,"view_taxonomy_loop_type-vakantiehuisje":13,"view_cpt_uitstapjes":920,"views_template_conditions_for_uitstapjes":[],"views_template_for_uitstapjes":16729,"views_template_conditions_for_huisje-huren":[],"view_cpt_huisje-huren":13,"view_taxonomy_loop_type-huisje":13,"view_taxonomy_loop_aantal-personen-huisje":13,"view_taxonomy_loop_aantal-slaapkamers-huisje":13,"view_taxonomy_loop_land":13,"view_taxonomy_loop_aantal-badkamers":13,"view_taxonomy_loop_ligging":13,"view_taxonomy_loop_provincie":13,"view_taxonomy_loop_voorzieningen":13,"views_template_for_inspiratie":25250,"views_template_conditions_for_inspiratie":[]},"installer":{"version":"2.6.1","repositories":{"wpml":{"api-url":"https:\/\/api.wpml.org\/","bucket-url":"not assigned","subscription":"","last-successful-subscription-fetch":"none"},"toolset":{"api-url":"https:\/\/api.toolset.com\/","bucket-url":"https:\/\/wptypes.s3.amazonaws.com\/toolset-bucket-6.json","subscription":{"key":"ZhhG4SMaUW","data":{"subscription_type":7526,"expires":"2023-07-23","status":"1","notes":"resubscribed from #112085","order_id":"2423755","hasAutoRenewal":true},"registered_by":1,"site_url":"https:\/\/heerlijkhuisjehuren.nl"},"last-successful-subscription-fetch":"2022-08-25 06:10:10"}},"instances":{"\/var\/www\/vhosts\/boeken365.nl\/heerlijkhuisjehuren.nl\/wp-content\/plugins\/types\/vendor\/otgs\/installer\/installer.php":{"bootfile":"\/var\/www\/vhosts\/boeken365.nl\/heerlijkhuisjehuren.nl\/wp-content\/plugins\/types\/vendor\/otgs\/installer\/installer.php","version":"2.6.1","args":{"plugins_install_tab":"1","repositories_include":["toolset","wpml"],"site_key_nags":[{"repository_id":"toolset","product_name":"Toolset"}]},"delegated":true}}}}}
Hi Michel,
This is not the debugging information i'm referring to.
The debug information is for the the conditional block. You will need to toggle the debug switch on and then go to the frontend and copy the debug information and send it to me so that I can see what is being evaluated in the conditional block.
Thanks,
Shane
####################
wpv-conditional attributes
####################
Array
(
[if] => ( CONTAINS( #(voorzieningen), 'Zwembad (gemeenschappelijk)' ) )
[debug] => true
)
####################
Debug information
####################
--------------------
Original expression: ( CONTAINS( #(voorzieningen), 'Zwembad (gemeenschappelijk)' ) )
--------------------
After matching 2 numeric strings into real numbers: ( CONTAINS( ARRAY('internettoegang-wifi',206,'Internettoegang (WiFi)','koel-vriescombinatie','210','Koel-/vriescombinatie','tuin','216','Tuin','tuinmeubilair','218','Tuinmeubilair','verwarming-cv','220','Verwarming (CV)'), 'Zwembad (gemeenschappelijk)' ) )
Matched '206' to 206
After matching 5 numeric strings into real numbers: ( CONTAINS( ARRAY('internettoegang-wifi',206,'Internettoegang (WiFi)','koel-vriescombinatie',210,'Koel-/vriescombinatie','tuin','216','Tuin','tuinmeubilair','218','Tuinmeubilair','verwarming-cv','220','Verwarming (CV)'), 'Zwembad (gemeenschappelijk)' ) )
Matched '210' to 210
After matching 8 numeric strings into real numbers: ( CONTAINS( ARRAY('internettoegang-wifi',206,'Internettoegang (WiFi)','koel-vriescombinatie',210,'Koel-/vriescombinatie','tuin',216,'Tuin','tuinmeubilair','218','Tuinmeubilair','verwarming-cv','220','Verwarming (CV)'), 'Zwembad (gemeenschappelijk)' ) )
Matched '216' to 216
After matching 11 numeric strings into real numbers: ( CONTAINS( ARRAY('internettoegang-wifi',206,'Internettoegang (WiFi)','koel-vriescombinatie',210,'Koel-/vriescombinatie','tuin',216,'Tuin','tuinmeubilair',218,'Tuinmeubilair','verwarming-cv','220','Verwarming (CV)'), 'Zwembad (gemeenschappelijk)' ) )
Matched '218' to 218
After matching 14 numeric strings into real numbers: ( CONTAINS( ARRAY('internettoegang-wifi',206,'Internettoegang (WiFi)','koel-vriescombinatie',210,'Koel-/vriescombinatie','tuin',216,'Tuin','tuinmeubilair',218,'Tuinmeubilair','verwarming-cv',220,'Verwarming (CV)'), 'Zwembad (gemeenschappelijk)' ) )
Matched '220' to 220
Hi Michel,
Thanks for the conditional debug information.
Based on what I'm seeing here your post doesn't meet the requirements of the conditional, hence it is not validating.
Would you mind allowing me to have admin access to the website so that I can have a more detailed look at this for you ?
Please where applicable please provide me with a link to an example page where I can see the issue.
I've enabled the private fields for your next response.
Thanks,
Shane
Hi Michel,
I'm not seeing where you've sent a link to the template that has the conditional.
Thanks,
Shane
hidden link
sorry this one with sauna.
hidden link
but it seems to be working now
My issue is resolved now. Thank you!