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
3239 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
I have a sail form with a upload field. After selecting the file, I want to Canc
shaoyongw
over 10 years ago
I have a sail form with a upload field. After selecting the file, I want to Cancel the form. But the file is uploaded anyway. The Cancel button is buttonWidgetSubmit. How to submit the form without uploading the file?
OriginalPostID-142946
OriginalPostID-142946
Discussion posts and replies are publicly visible
0
KARTHIK NATARAJAN
Certified Lead Developer
over 10 years ago
Configure the saveInto parameter of Cancel button in such a way that it empties your local or ri! values. for example if you have ri!docValue to hold the uploaded document, configure your saveInto parameter as a!save(ri!docValue,{}). Hope this helps...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
shaoyongw
over 10 years ago
Karthikn, I have tried this and not working.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 10 years ago
You can just handle this in process. Save your button click value to a pv, if the user cancels and your document pv is populated route to a delete document node.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nikhilh430
over 10 years ago
Check this post: Enhancement request is raised.
forum.appian.com/.../e-134688
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
KARTHIK NATARAJAN
Certified Lead Developer
over 10 years ago
Hi Shaoyong, i got your question in a wrong way, and the suggestion I provided will only clear the PV after submit rather than the doc from the repository . So Tim's suggestion would be ideal to remove the document from repository as you click the Cancel button
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
giridharn
over 10 years ago
When you upload a file, I believe it will first be uploaded to a temp physical directory of the server. Only after you submit the form, the file will be moved to appian folder that you specified in the upload control. So if you cancel the form, no harm done. The file will be in temp folder and no one can see it
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel