<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Prevent Removal of Uploaded Document</title><link>https://community.appian.com/discussions/f/user-interface/8896/prevent-removal-of-uploaded-document</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Prevent Removal of Uploaded Document</title><link>https://community.appian.com/thread/39632?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2016 20:29:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e68246f7-8fb6-4bc6-9fea-bde334d1519f</guid><dc:creator>jerimiaht801</dc:creator><description>Thanks very much for your feedback everyone, I really appreciate it! I really wanted to avoid going the button widget submit route for the &amp;quot;File Upload Complete&amp;quot; button. Since there wasn&amp;#39;t a way to disable document removal out of the box, I convinced the business that disabling document removal was &amp;quot;bad process&amp;quot;. I implemented a work around &amp;quot;solution&amp;quot; where I changed the &amp;quot;File Upload Complete&amp;quot; button to &amp;quot;Update/Refresh Uploaded Docs&amp;quot; and displaying the uploaded doc count in a rich text field adjacent to the file upload field.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Prevent Removal of Uploaded Document</title><link>https://community.appian.com/thread/39531?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2016 06:05:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d214c88-f2d3-40c3-9da5-57a34fe39569</guid><dc:creator>ENOSH EZEKIEL</dc:creator><description>@jerimiah - As far as I understand from the requirements, A User will upload as many documents and once he clicks on "File Upload Complete", the user should not be able to remove the documents uploaded previously. To achieve the above requirement, there are 2 ways of doing it.&lt;br /&gt;&lt;br /&gt;1.\tMake the "File Upload Complete" button as buttonWidgetSubmit and submit the form and reload. While reloading, (consider ri!uploadedFiles is the list of file uploads), append all values in ri!files to ri!uploadedFiles and check if ri!uploadedFiles is not-empty. If true, then display all the filenames in a textField(with size) with no labels, iterated through a!applyComponents. By this way, the End User will not see the remove link. If you follow the same procedure of creating a Multi-file upload component as mentioned in,&lt;br /&gt;&lt;br /&gt;https://forum.appian.com/suite/help/7.11/SAIL_Recipes.html#Add_Multiple_File_Upload_Components_Dynamically&lt;br /&gt;&lt;br /&gt;Then, update the rule!ucMultiFileUploadRenderField() with:&lt;br /&gt;&lt;br /&gt;=with(&lt;br /&gt;  local!paddedArray: append(ri!files, null),&lt;br /&gt;  {&lt;br /&gt;  if(not(rule!APN_isEmpty(ri!uploadedFiles)),&lt;br /&gt;    a!textField(&lt;br /&gt;  labelPosition: "ADJACENT",&lt;br /&gt;  readOnly: true,&lt;br /&gt;  value: concat(document(ri!uploadedFiles,"name"),".",document(ri!uploadedFiles,"extension"),"(",document(ri!uploadedFiles,"size"),"KB)")&lt;br /&gt;  ),&lt;br /&gt;  a!fileUploadField(&lt;br /&gt;    label: if(ri!index = 1, ri!label, ""),&lt;br /&gt;    target: ri!target,&lt;br /&gt;    value: local!paddedArray[ri!index],&lt;br /&gt;    saveInto: {&lt;br /&gt;      a!save(ri!files, ucMultiFileUploadResizeArray(ri!files, ri!index, save!value))&lt;br /&gt;    }&lt;br /&gt;  ))&lt;br /&gt;  }&lt;br /&gt;)&lt;br /&gt;2. You can follow same methodology, and replace the a!textField with a!documentDownloadLink.&lt;br /&gt;&lt;br /&gt;Please lemme know if this suffice!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Prevent Removal of Uploaded Document</title><link>https://community.appian.com/thread/39525?ContentTypeID=1</link><pubDate>Sat, 19 Nov 2016 22:14:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ecbb951b-d246-4d0e-a8e4-7d5599c4ef6d</guid><dc:creator>chandu</dc:creator><description>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&amp;#39;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.&lt;br /&gt;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.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Prevent Removal of Uploaded Document</title><link>https://community.appian.com/thread/39524?ContentTypeID=1</link><pubDate>Sat, 19 Nov 2016 13:54:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6cc2181e-8168-47ba-895a-0fc82d887b91</guid><dc:creator>kondetiv</dc:creator><description>@shashank The link you have mentioned was talking about preventing removal of the docs which were uploaded in the previous steps. Which can be achieved by using a!documentDownloadLink() component. After watching picture in the above comments, what i understand is the current user is uploading multiple files and once he click on File upload complete button he should not be able to remove the files.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Prevent Removal of Uploaded Document</title><link>https://community.appian.com/thread/39523?ContentTypeID=1</link><pubDate>Sat, 19 Nov 2016 06:29:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a428ea22-793d-4ad8-82d0-da5e965eaf51</guid><dc:creator>Shashank</dc:creator><description>@jerimiaht &lt;br /&gt;Hi &lt;br /&gt;In case you havent had a chance please check the following entry &lt;br /&gt;&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/tempo/entry/e-200743"&gt;forum.appian.com/.../e-200743&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It might be of help &lt;br /&gt;&lt;br /&gt;Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Prevent Removal of Uploaded Document</title><link>https://community.appian.com/thread/39522?ContentTypeID=1</link><pubDate>Sat, 19 Nov 2016 03:20:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d06a7618-e577-4a94-b3a9-fd46f74b512c</guid><dc:creator>jerimiaht801</dc:creator><description>Better image. Sorry&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/7506.Multi-Upload-Field.jpg"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/7506.Multi-Upload-Field.jpg" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>