This is a rather complicated question - but I will give it my CRISPY best:
A form has lots of fields - (version 4.x vintage) - and many of them have input validation. eg:
@if(field = “”; @failure(“…”); @success)
A couple “comments” fields works as follows:
Every time a the form is saved:
A comment-history field collects whatever the comments-input field has in it for a permament record. Then,
an input translation formula, in the actual comments-input field clears it: @If(@isdocbeingsaved; “”; comments)
The comments fields (input and history) are all at the bottom of them form. The other validated fields are above them.
Problem:
If someone saves the document, and a field with a validation fails, the comment is still commiting to the history field. When that happens, the user then has to put in another comment!
You can imagine the issue if 2 or 3 validations fails consecutively.
My question is:
What is the order of operations here?
The behavior here tells me that first the computed fields ran, then all input translations run - then finally all the validations run.
Can anyone confirm this order? I would appreciate any advice.
TIA