Skip to main content
Solved

If with checkbox not working


Forum|alt.badge.img+8

Hi everyone !
Here’s a very simple formula :
IF(
{Edition}=1,
{Genuine Console Family},
IF(
NOT(
AND(
{Accessories list},
{Games}
)
),
{Genuine Console Family}
)
)

I don’t know why, the first IF doesn’t work at all. I check the checkbox and nothing happens.
But, when Accessories list and Games have values, I can check and the field is fill with the right value (Genuine Console Family).

Thanks a lot for any help.

Best answer by Valentin_GUENIC

I made a mistake… and I’m sorry.
I forget to mention that I need to fill another field (hardwares) in order to have Genuine Family Console field not empty… so it works like a charm !
Thanks for helping my brain working :winking_face:

View original
Did this topic help you find an answer to your question?

Forum|alt.badge.img+14

I just tried your formula. It does work, but maybe you’ve got the logic wrong for the behaviour you want. What exactly are you trrying to achieve?


Forum|alt.badge.img+8
David_Skinner wrote:

I just tried your formula. It does work, but maybe you’ve got the logic wrong for the behaviour you want. What exactly are you trrying to achieve?


OK let me explain.
I want to display {Genuine Console Family} (another field content) if:

  • checkbox is checked
    OR
  • {Accessories list} AND {Games} are empty (both at the same time)

Forum|alt.badge.img+14
Valentin_GUENIC wrote:

OK let me explain.
I want to display {Genuine Console Family} (another field content) if:

  • checkbox is checked
    OR
  • {Accessories list} AND {Games} are empty (both at the same time)

IF(
OR({Edition}=1,AND({Accessories list}="",
{Games}="")
),
{Genuine Console Family},
BLANK()
)


Forum|alt.badge.img+14

That’s assuming Accessories List and Games are both text fields.

I think your problem was applying NOT to an AND statement. Your AND statement was evaluating as TRUE if both Accessories and Games were not empty, and FALSE in all other instances. The NOT statement then reversed this. So it was FALSE when both Accessories and Games were not empty and TRUE for all other instances.


Forum|alt.badge.img+8
David_Skinner wrote:

That’s assuming Accessories List and Games are both text fields.

I think your problem was applying NOT to an AND statement. Your AND statement was evaluating as TRUE if both Accessories and Games were not empty, and FALSE in all other instances. The NOT statement then reversed this. So it was FALSE when both Accessories and Games were not empty and TRUE for all other instances.


And they’re not text fields… :slightly_smiling_face:


Forum|alt.badge.img+14
Valentin_GUENIC wrote:

And they’re not text fields… :slightly_smiling_face:


You might need to change the Accessories List and Games evaluations then. Possibly to:

AND({Accessories list}=0,{Games}=0)


Forum|alt.badge.img+8
David_Skinner wrote:

You might need to change the Accessories List and Games evaluations then. Possibly to:

AND({Accessories list}=0,{Games}=0)


So I did test what you wrote… and still, when I check the checkbox, nothing is displayed in the field.
I don’t understand at all what is the problem.


Forum|alt.badge.img+14
Valentin_GUENIC wrote:

So I did test what you wrote… and still, when I check the checkbox, nothing is displayed in the field.
I don’t understand at all what is the problem.


What type of fields are Accessories List and Games?


Forum|alt.badge.img+8
David_Skinner wrote:

What type of fields are Accessories List and Games?


Both are links to fields


Forum|alt.badge.img+14
Valentin_GUENIC wrote:

Both are links to fields


Are you sure {Genuine Console Family} is not empty?


Forum|alt.badge.img+8
David_Skinner wrote:

Are you sure {Genuine Console Family} is not empty?


Absolutely !
Because it fills up while Accessories list OR Games is filled.


Forum|alt.badge.img+14
Valentin_GUENIC wrote:

Absolutely !
Because it fills up while Accessories list OR Games is filled.


So when Accessories List and Games are both empty then Genuine Console Family is also empty?

Here’s a link to an Example base that works with the behaviour you have described.


Forum|alt.badge.img+8
David_Skinner wrote:

So when Accessories List and Games are both empty then Genuine Console Family is also empty?

Here’s a link to an Example base that works with the behaviour you have described.


Genuine Console Family should be empty when: Accessories List and Games are both empty and checkbox unchecked
Genuine Console Family should be filled when: Accessories list OR Games are not empty, OR checkbox checked.
:slightly_smiling_face:
Yes I know it’s a bit weird. I have some conditional statements in order to filter my linked fields (accessories and games) depending on this field. It checks if there’s a value and this value is connected to a family of console, so are accessories and games.


Forum|alt.badge.img+8

I made a mistake… and I’m sorry.
I forget to mention that I need to fill another field (hardwares) in order to have Genuine Family Console field not empty… so it works like a charm !
Thanks for helping my brain working :winking_face:


Reply