Post

Run Validations Immediately on Field Change Using Determine Actions and Side Effects

Learn how to run RAP validations immediately on field change using determine actions combined with side effects for real-time user feedback.

Want your validation to run immediately after a field change — not just on save? Use Determine Actions + Side Effects!

Add your validation to a determine action and trigger it using side effects on the field change. This provides instant feedback through sticky messages, even in draft-enabled apps — no need to wait for the save.

A great way to catch issues early and enhance user experience!

1
2
3
4
5
6
7
8
9
10
11
define behavior for /DMO/FSA_R_RootTP alias Root
...
{
  validation validateValidTo on save { create; update; field ValidTo; }

  determine action validateDate { validation validateValidTo; }

  side effects {
    determine action validateDate executed on field ValidTo affects messages;
  }
}

Further Reading:

This post is licensed under CC BY 4.0 by the author.