Hello All,
I have an issue wherein my validationMessage is not removing after clicking cancel button. My scenario is I have a User Form that whenever I click submit it will show a message "All fields are required". After that I will now click the Cancel Button. However, when I go back to the Form my validation is still there. Can anyone explain to me how can I prevent that from happening?Here's my validation
a!validationMessage( message: "You must fill up both roles and email address!", validateAfter: "SUBMIT", showWhen: or(isnull(local!email), isnull(local!role)) )
Here's my field
a!textField( label: "Email", labelPosition: "ABOVE", value: local!email, saveInto: local!email, refreshAfter: "UNFOCUS", validations: {} )
I put the validationMessage under the columnLayout.
Discussion posts and replies are publicly visible
Please explain how you are doing this "back to the form" and "click the cancel button" interaction. My any chance, could it be that you embed this as a sub interface into another one?
With proper usage of related actions or startProcessLink this does not happen.
Hello, thank you for answering.
Yes, it's just a sub interface. The way I navigate is by declaring rule input called action. I have a dashboard called "user management" and then I have "user registration", there is a button under user management called Create User, whenever I clicked that I used the showWhen. I'll show the user management if the value of ri!action is userManagement and show user form if the value is "addform" that's how I navigate interfaces.
Here the validation message is not removed when I go back to this form after clicking the cancel button.
Is there a reason for not using a process and a startProcessLink? Doing this kind of things just in an interface can become tricky.
I'm using startProcessLink on my submit button. Whenever I try to save data to the database. Can you explain to me how startProcessLink can resolve the issue of removing the validation message when navigating interface? Sorry, I'm fairly new to appian.
I understand. Try to decouple your functionality. Create a separate interface to create a new user. Make it the start form of a process. Then start that process via a startProcessLink.
I do not know your background, but wrapping your head around Appian might take a bit.
I'm already using two interface btw. One is user management and one is for the registration form. The user management form has a create user button that will navigate to the user management interface. I just want the navigation dissappear whenever I go back again to the user form
I know that you have two interfaces. The way of how to implement this kind of things is just different with Appian. The basic idea is that you have data (Appian Records), UI to display this data and processes to allow a fine grained interaction with the user. These processes are not meant to be another abstract way of manipulating data in DB but a way to express a functional business process.
In your case it could be: Create user, send email to user, add user to groups assign task to users supervisor to assign application roles and permissions.