How to get multiple values from checkbox with formula

I want to hide a button in a form based on a formula condition. I am getting a checkbox field called for example "X" and this checkbox field has three lines (checkboxes) how to get multiple values?

For example checkbox field X has the following checkboxes:

A

B

C

How to check whether A and B are ticked?

You can just use the field name and check for the values.

For example

x = "A" | x = "B"

as a Hide when formula will only show that field when X is C or blank.

Is that what you were wanting to do here?

Hi Nuri,
This formula will tell you if BOTH A and B are selected:
@If( @IsMember( "A" : "B" ; FieldX ) ; "Yep" ; "Nope" )

This formula will tell you if EITHER A and/or B are selected:
@If( @Contains( FieldX ; "A" : "B" ) ; "Yep" ; "Nope" )

Hope this helps,

Quin

It is important to remember that the external presentation on the form (checkbox) is internally stored as a multi-value text list of the values checked. So, if A and B are checked, the value of the Notes item is "A":"B", a two item text list.

Knowing that, you can use formulas such as @Contains and @IsMember and others that deal with a text list for hide-when formulas. It is also just good to know the internal representation, as you might want to display it somewhere or categorize upon it in a view. By default, checkboxes are always text even if they appear as numbers, so even if they appear to be numbers, you should either treat them as text or convert them before treating them as numbers.