Tell us what you are trying to do?
I want to use a value out of three possibilities of a selection box field (set up in screenshot). The problem is that when the field is checked more than once, I don't know how to test for the other values.
I want to show an icon based on what type an Ambassador is: TA, VR or HT. In the conditional block I can only test for equal or not equal, whereas I would like to check if it CONTAINS, much like taxonomies.
We actually don't have a contains function that would operate in this fashion, however you can do your conditionals based on which option is checked using the options attribute for the field.
Each option value will represent the position of your checkbox, option 0 is the first selectable option while option 1 is the second selectable option.
Unfortunately the only way this will work is by manually using the conditional shortcodes. I've found that evaluating the checkboxes in the conditional block is not functioning correctly as such I've escalated the issue to our second tier supporters for further advise on the one.
Our 2nd tier team reported that we have an existing ticket on this issue as a Feature Request. At this point in time it's not scheduled to be worked on and it could be some time before this happens.
Right now the best workaround is to manually use the conditional shortcodes with the Toolset Types shortcode to pick off the checkboxes.
Thanks for that but can you give me a working example with an image inside the conditional? As this is currently not working on my site (i.e. the image inside doesn't show when the condition is met).
Remember I mentioned that you won't be able to hide a block with this method because you're not able to evaluate checkboxes inside the GUI.
Perhaps I need to have a look at what you're actually doing to see what is happening. I saw that you mentioned that you have to put an extra space in the value to evaluate e.g "TA " and not "TA". For this I would recommend checking the values in the custom field itself to ensure that there is no space added.
I had to put the shortcodes in a HTML-block. This will be hard for non-programmers to change, so it's not ideal. Please let me know when the Feature Request is planned to be implemented.