Zum Hauptinhalt gehen

Rules: Field must not be empty if toggle equals false

Kommentare

2 Kommentare

  • Zendesk API User
    Author: hoebbel - 8/24/2022 7:08

    Hello Mareike,

    as you wrote yourself, the rule is only executed if the IF statement is true. This means that the rule will be executed if the CMS_INPUT_TOGGLE is false and thus the FS_REFERENCE input component becomes a mandatory field.
    If the TOGGLE is now set to true, the rule is not executed again, so the REFERENCE input component remains a mandatory field.
    Solution: Insert both queries in the WITH tag, then it also works when you switch the TOGGLE back and forth.

    Note: Basically, you should never query something in the IF that an editor can change. This always leads to effects like the one you can observe here!

    Best regards
    Holger

    0
  • Zendesk API User
    Author: mareike - 8/24/2022 9:22

    Thank you, I understand and got it working with a WITH

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.