<?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>download document on button click</title><link>https://community.appian.com/discussions/f/user-interface/8482/download-document-on-button-click</link><description>When I click on button on SAIL, it would prompt for document to download. How will achieve this functionality. Thanks in advance. OriginalPostID-236773</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/80345?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 12:11:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02fa4c72-8ae0-4263-bbe0-2839058d67f1</guid><dc:creator>guiomarp0001</dc:creator><description>&lt;p&gt;Is there a solution for this matter?&amp;nbsp;At the minute in order to acheive this, we are making the user click 2 times (one downloads the doc to appian, the other one downloads to the user computer).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37436?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 14:18:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:32d19829-deab-4f76-993e-fc326e9e51ff</guid><dc:creator>sikhivahans</dc:creator><description>Dynamic Link would allow you to run code that is associated with its saveInto but not more than that.  I don&amp;#39;t think there is an option with which the saveInto, as well as download, will go hand in hand.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37434?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 14:01:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c25c6a78-3c03-4ad3-a875-360ea08fabcc</guid><dc:creator>ramakg</dc:creator><description>Vijay, i tried with Dynamic link but, it is not prompting for download document. But I need both functionalities (image as soon as I click on image it should prompt for download and as well as I have to capture the event). any work around solution.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37432?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 13:07:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:64b61e49-7b8f-4508-bb93-d51a557f5e01</guid><dc:creator>vijayy700</dc:creator><description>Agree with @sikhivahans&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37430?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 13:03:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6167f49c-874c-40ed-931c-4a95547c915c</guid><dc:creator>sikhivahans</dc:creator><description>@ramakg It depends on what kind of Link Type you associate with 'Document Image'. If you use Dynamic Link with Document Image, then yes, it is possible to capture the image click event as we can write the code which captures the event in the 'saveInto' of Dynamic Link. But if you want to use Document Download Link, it's not possible as Document Download Link lacks 'saveInto' attribute.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37429?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 12:50:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dc251677-204c-4549-b22c-5ae87596117b</guid><dc:creator>ramakg</dc:creator><description>thank you Vijay. is it possible to capture an image click event?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37320?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2016 16:38:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e88e2c60-694d-4158-9800-f878fa2ed501</guid><dc:creator>vijayy700</dc:creator><description>Do you mean to show image instead of plan link to download the file, Yes in that case use &amp;quot;a!documentImage(...)&amp;quot; function &lt;br /&gt;&lt;br /&gt; a!documentImage(&lt;br /&gt;    document: todocument(1),&lt;br /&gt;    link: a!documentDownloadLink(&lt;br /&gt;      label: &amp;quot;sampleImage&amp;quot;,&lt;br /&gt;      document: linktodocument(1,&amp;quot;sample&amp;quot;)&lt;br /&gt;    )&lt;br /&gt;&lt;br /&gt;use &amp;quot;document&amp;quot; property to show the image for enduser on which user will click&lt;br /&gt;And  then use &amp;quot;document: linktodocument(1,&amp;quot;sample&amp;quot;)&amp;quot; property to link the document which will get down load once user clicks on the image&lt;br /&gt;&lt;br /&gt;Hope this will help :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37319?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2016 16:23:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb779363-1740-4f63-bee3-75732651abe9</guid><dc:creator>ramakg</dc:creator><description>@chandrasekharg, can we attach documentDownloadLink tag to image filed ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37318?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2016 16:12:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:62e41916-cf33-44ec-8b5a-0187cebdc197</guid><dc:creator>vijayy700</dc:creator><description>You may try this, this is not exactly what you asked for but quite similar -  You can add a button on your Form with appropriate text and clicking on that will lead to the next form (using activity chaining to next form) there you can have a link to download the file and after its completion back to the previous page (where the button was clicked)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37316?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2016 14:21:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f7492507-f389-4aa0-b3c9-ac8d4e4359d0</guid><dc:creator>chandu</dc:creator><description>Hi Ramakg, how about using an Icon type image field some thing like which will display &amp;quot;down arrow&amp;quot; that points to documentDownloadLink, that gives some visual clue to end user so that user can download the document on clicking of that Image.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37315?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2016 13:54:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3614ccec-afa5-4ee5-bd7b-0149319f6a13</guid><dc:creator>sikhivahans</dc:creator><description>The above-mentioned approach still won&amp;#39;t give a *prompt*which we see when we click a Document Link SAIL Component.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37314?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2016 13:50:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:836404f2-cb1f-49b6-b99b-8b09453a1929</guid><dc:creator>ramakg</dc:creator><description>thanks for your quick response&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37312?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2016 12:55:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c160ce32-0255-4614-8dce-8a0619d6ccc7</guid><dc:creator>sahithip</dc:creator><description>Hi Rama,&lt;br /&gt;If the button is submit then we can display one more form which contain the link to download the document. &lt;br /&gt;If the document is not Submit, den we can display extra field which contains link to download the document on click of that button&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: download document on button click</title><link>https://community.appian.com/thread/37311?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2016 12:52:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a026fb6a-b75b-49e2-a2fe-6ffcd737c81a</guid><dc:creator>sikhivahans</dc:creator><description>@ramakg To the best of my knowledge, he SAIL Button Component isn't actually intended for doing so. Document Link SAIL Component is the one which is intended for achieving the purpose you are aiming at, and afaik SAIL Button Component isn't a viable option at least for now.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>