Hello, I'm new to Appian, and I'm trying to build main page report which is quite similar to this "Form steps".
However, each step has to show specific interface by using rule!tInterface1. My question is how can I check the validation for all of these steps at the end of the report and show a summary for all of the errors, e.g. "Step1 has an error". P.S. an error sign appears by "default" in the section that contains an error, Can I check if the section has this sign or not?
Thank you in advance!
Discussion posts and replies are publicly visible
Why not validate each step and continue only if everything is fine?
In Appian, a UI component that is not shown, is not evaluated at all. So its also not validated.
Thank you Stefan for your reply!The business requires to not stop at any step unless the submit button is pressed. Thus, the summary of error messages will appear.
call interfaces at each step, if something is breaking then you will get error at that step and also you can fix it.
Thanks for your reply!That what I already did I called each interface in separate step, but I'm not sure how can I check the validation and print it in the summary box "This box will contain all the error messages when the user press submit at the end of the form"
Use a local variable to store all of them.
the rule!interface not returning if there's an error or not unless if I use "validate:True " for the next button, which I don't want it I'm looking for a way to check at the end of the form "submit button".
Then add a last step for validation and build an interface that checks each value and shows messages according to your logic.
BTW, I hate it to fill out a multi-step form which tells me at the end, that I made a mistake on the first step!
I think it should be like notifying users on each step about the problems but not restricting them to moving to the next also. The only restriction happens when the user finally wants to submit.
I think I have not explain it clearly, I'm not sure how to check each value if these values are coming from different interfaces, some of them are business rules and some of them are required fields. could you elaborate your reply please?
Following the Appian standard approach, you store all values to one or more rule inputs. For validation, you would now use these and evaluate your logic.