I'm attempting to use the data-dependent (advanced text settings) to conditionally display a types group in a woocommerce order post, but i'm not having much luck. using:
NOT (empty($(my_custom_field)))
Basically, I have a simple custom text field created by woo-commerce, when a certain product ordered. meaning if a user orders a certain type of product, then this custom field will be part of the order meta fields.
I also have a custom field group called "Options" (created in toolset types) which I only want to display if the woocommerce custom field exists in the order. trying to conditionally display with data-dependent filter.
I don't seem to be having much luck with
NOT (empty($(my_custom_field)))
You'll need to use your browser dev tools to inspect the markup of the admin page in question and identify a selector for the part you want to hide as well as a selector for the input that will determine the conditional display.
Your code will check the value of the input and set the visibility of the target section accordingly, and you'll want to add it via the load and change event listeners, so that the visibility is correct when the page first loads and updates as needed.