Skip to main content
Known Participant
Sep 11, 2025 8:46 PM UTC
Solved

validateAfter: "SUBMIT" is not working

Appian is evaluating validation before I submit, even though the parameter is set.

              a!validationMessage(
                message: "Field is Required",
                validateAfter: "SUBMIT",
                showWhen: a!isNullOrEmpty(
                  rule!_process_CurrencySanitizer(a!defaultValue(ri!value, null))
                )
              )

Why is Appian behaving like that? It should be expecting my submit.

mikes0011
mikes0011Answer
Brainy
Sep 15, 2025 12:49 PM UTC

As Stefan implied, a!validationMessage() is only valid in context of Form or Section components.

for a text field, if you want it to be required and for that to be evaluated at sumbit time, the standard "required" and "requiredMessage" parameters should be sufficient.

The Expression Guru

4 replies

shubhama926776
Brainy
Sep 12, 2025 4:32 AM UTC

Component looks to be textField and are you sure you are using a!validationMessage() on textField?
This does not support.
[mention:66e7f986653d4e6ba7ac15249a9a5776:e9ed411860ed4f2ba0265705b8793d05] 

शुभम्
New Participant
Sep 13, 2025 5:43 PM UTC

Please share whole code snipped.

stefanhelzle0001
Brainy
Sep 15, 2025 6:22 AM UTC

Test fields do not support a!validationMessage().

mikes0011
mikes0011Answer
Brainy
Sep 15, 2025 12:49 PM UTC

As Stefan implied, a!validationMessage() is only valid in context of Form or Section components.

for a text field, if you want it to be required and for that to be evaluated at sumbit time, the standard "required" and "requiredMessage" parameters should be sufficient.

The Expression Guru