Can I disable an Option of a Checkbox field just for the Transition

Issue #612 resolved
Hendrik Korte created an issue

Is it possble to disable an option of a Checkbox Field for a specific Transition and not global? So far i used the method but it disabled that option of that entire Field.

Comments (3)

  1. Fidel Castro Armario repo owner

    Hi Hendrik,

    It's not possible to disable an option for a transition, but you can add a validator that ensures that the user doesn't select the option: a custom error message will be shown in case the forbidden option is selected, and the transition execution is blocked until a valid option is selected.

    To implement this validation you should use "Boolean validator with math, date-time or text-string terms" with the following boolean expression:

    %{nnnnn} not in ["Option A", "Option_B", "Option_C"]
    

    where

    • nnnnn is field code for your Checkbox custom field.
    • "Option A", "Option B" and "Option C" are forbidden options.

    As you can see, I have provided a more general solution that supports more than one forbidden option.

  2. Log in to comment