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
6 replies
Subscribers
7 subscribers
Views
3991 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Prevent Removal of Uploaded Document
jerimiaht801
over 8 years ago
Hello, I have a use case in which I need to allow a user to upload multiple documents to a SAIL form via a!fileUploadField. Once the desired docs are uploaded, the user clicks a button to commit the documents to the form and sets a Boolean variable that's used to disable the file upload field. I need to prevent the user from adding more documents AND prevent them from removing committed docs once the button is clicked.
I have accomplished the ability to disable the file upload field, preventing additional uploads however the user can still remove uploaded documents from the interface via the X next to the document name. Is there a way to disable all functionality on a file upload field, including the ability to remove docs?
Thanks in advance for your help!
OriginalPostID-247982
Discussion posts and replies are publicly visible
Parents
0
chandu
A Score Level 2
over 8 years ago
In the file upload component once the user clicks on browse button and selects a file, when the file is uploaded i.e it will have a temporary Id for the uploaded doc. The user can still remove the file after clicking to X displayed next to file uploaded.I think this is the default behaviour as the user didn't submitted the form. if the user submits the form the file will be uploaded to the target KC. Please check your code what u are configured for the file upload complete button. I will suggest to go ahead like this.
Make the File Upload complete button as submit button, and loop back to the same form, when it loop back to the same form display the file upload component as read only.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
chandu
A Score Level 2
over 8 years ago
In the file upload component once the user clicks on browse button and selects a file, when the file is uploaded i.e it will have a temporary Id for the uploaded doc. The user can still remove the file after clicking to X displayed next to file uploaded.I think this is the default behaviour as the user didn't submitted the form. if the user submits the form the file will be uploaded to the target KC. Please check your code what u are configured for the file upload complete button. I will suggest to go ahead like this.
Make the File Upload complete button as submit button, and loop back to the same form, when it loop back to the same form display the file upload component as read only.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data