Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
8 subscribers
Views
2037 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hello, I am building a wizard-like Interface and i would like to rest
thanosm
over 8 years ago
Hello,
I am building a wizard-like Interface and i would like to restrict the interface from moving forward to the next interface if certain fields have not been filled. I have used validationGroups on every buttonWidget that "forces" the interface to move to the next and and i have used validationGroups on the fields that i need to have values.
However, this has not worked. Any ideas?
OriginalPostID-158785
OriginalPostID-158785
Discussion posts and replies are publicly visible
0
Bala K
over 8 years ago
Even I have same problem. Any inputs will be helpful.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
thanosm
over 8 years ago
I have just found it. In the buttonWidget components you need to set the attribute "validate" to true. In the buttonWidget components this attribute is by default false. It is by default true in the buttonWidgetSubmit components.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Bala K
over 8 years ago
But in my case if I enable validate to true, saveInto values are not reflecting for the button. is it working in your case?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@balasubramanik Afaik, according to SAIL design, the code associated with 'saveInto' attribute of a button component won't be executed until all the validations associated with the visible components in the interface are satisfied(assuming that 'validate' attribute of the button component is set to true). Is the interface built by you behaving against it? Further may I please know if your interface has any failed validations when you are making an interaction with the button component? Attaching the code snippet would be worth, as the other practitioners might help you resolve quickly with their suggestions.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Bala K
over 8 years ago
saveInto is not getting executed if I have a fileupload component as below,
,
secondColumnContents:
{
a!fileUploadField
(
label : "Upload Document",
required : true,
instructions : "Maximum size allowed is 10 MB",
target:cons!MIM_MODEL_DOC_FOLDER,
value:ri!file,
validationGroup: "UploadDoc",
saveInto:{a!save(ri!model_doc.upload_remarks,a!fileUploadField(value:ri!file).uploadedDocumentName)}
)
}
Button content is: a!buttonLayout(
primaryButtons: {a!buttonWidget(
label: "Upload New Document",
style: "NORMAL",
validate:true,
validationGroup: "UploadDoc",
saveInto: {
a!save(ri!modeldoc,false),
a!save(ri!review,true)))
Is there anything I am missing ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Bala K
over 8 years ago
I got it, its because I missed below in fileupload saveInto,
a!save(ri!file,save!value),
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
anshuk170
over 8 years ago
HI you can make those fields as required in the interfcae.Hope this links helps
forum.appian.com/.../SAIL_Recipes.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel