Tulip trigger for operator validation

Hi community,

I’m building a Tulip app and need help writing a trigger logic.

Chemical Name (A): Combatan

Chemical Quantity (B): 20 ml

Water Quantity (C): 980 ml

Requirement:

If all three values (A, B, and C) match the above conditions, the app should allow the operator to proceed and save the data.

If the Chemical Quantity (B) is not exactly 20 ml, the operator should get a validation message and should not be allowed to move to the next field (C) until the correct value is entered. The same is true for field C as well.

What’s the best way to implement this trigger in Tulip?

Hi Anand,

You can handle this with a trigger that checks each field as the operator enters it. A simple approach:

  1. On Change of Chemical Quantity (B) → add an If condition:

    • If value ≠ 20 → show message “Please enter 20 ml” and Clear Value so they can’t move on.
  2. On Change of Water Quantity (C) → add an If condition:

    • If value ≠ 980 → show message “Please enter 980 ml” and Clear Value.
  3. At the end (for Save/Proceed button) → add an If condition that checks:

    • Chemical Name = “Combatan”

    • Chemical Quantity = 20

    • Water Quantity = 980

    • If true → Allow Save/Go to Next Step

    • Else → show a validation message.

This way, operators are stopped at each field if the entry is wrong, and the final check makes sure all three values match before saving.

1 Like

Hey Nicolo,

That worked.

Thanks,
Anand Chakraverty

1 Like