I’ve got no fallback. I want to run the script when the true/false is selected. When it’s unselected I want no scripting.
Checkbox checked + if (omd_table_filters === true) => WORKS
Checkbox unchecked + if (omd_table_filters === true) => breaks script. I just expect that the code inside the statement gets ignored. Instead it breaks.
Also, when I echo the true/false when it’s set to ‘off’ the echo is empty. Is this normal?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users