<?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>File Upload Validate Extension On Button Disabled</title><link>https://community.appian.com/discussions/f/user-interface/25309/file-upload-validate-extension-on-button-disabled</link><description>I am trying to keep the submit button disabled if they have not selected a file and if the file is not a CSV extension. 
 The button disable works fine for check for no file but the file extension checking is not working and can not figure out why. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: File Upload Validate Extension On Button Disabled</title><link>https://community.appian.com/thread/98378?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 19:37:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92339368-6922-4c1e-9f37-ba991e57cd9e</guid><dc:creator>williamm0010</dc:creator><description>&lt;p&gt;That is to slick, even though I picked a .doc file the upload button still shows but when I click it nothing happens.&amp;nbsp; That will work, thank you guys for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload Validate Extension On Button Disabled</title><link>https://community.appian.com/thread/98377?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 19:32:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:06cbdfc8-0e75-4be4-bc65-dc192dfaea10</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I think the point Stefan is trying to make is, what you describe is &lt;em&gt;design&lt;/em&gt; and not &lt;em&gt;requirement&lt;/em&gt;.&amp;nbsp; As in, the fact that you can validate against a .csv file being uploaded, means the user will be unable to submit the form, regardless of whether the button is disabled - and thus the end result will be exactly the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload Validate Extension On Button Disabled</title><link>https://community.appian.com/thread/98376?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 19:26:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03619e06-4a9e-4f24-b3c1-a68cc12eeffb</guid><dc:creator>williamm0010</dc:creator><description>&lt;p&gt;They are asking for the submit button to stay disabled until a valid csv file is dropped into the upload box.&amp;nbsp; So when a valid csv file is dropped in the upload box the button can be pressed, if no file picked yet disabled, if they pick a .docx keep it disabled until .csv file is picked...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload Validate Extension On Button Disabled</title><link>https://community.appian.com/thread/98375?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 19:24:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:037ecafa-8b76-4777-a1b1-1ac90f3f9732</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Why do you &amp;quot;need&amp;quot; to do that? Is that a requirement? If yes, why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload Validate Extension On Button Disabled</title><link>https://community.appian.com/thread/98374?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 19:22:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d73a351b-15d8-4d01-8ed2-f0f4ef867986</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The code you&amp;#39;re trying to execute here is invalid in a few different ways.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;find(&amp;quot;CSV&amp;quot;, a!fileUploadField(value: upper(document(ri!csvFile_txt, &amp;quot;extension&amp;quot;))))&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And even if you did correct that to do what I assume you&amp;#39;re trying to do, it&amp;#39;s still unsupported functionality.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="90333" url="~/discussions/f/user-interface/25309/file-upload-validate-extension-on-button-disabled"]The passed parameter(s) are of the wrong type. Received the type Text.&amp;nbsp; &amp;nbsp;[/quote]
&lt;p&gt;This is because you&amp;#39;re trying to pass in a &amp;quot;value&amp;quot; for the File Upload Field, but the &amp;quot;value&amp;quot; you&amp;#39;re passing is text.&amp;nbsp; The value for the File Upload Field must be document, not text.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload Validate Extension On Button Disabled</title><link>https://community.appian.com/thread/98373?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 19:22:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f0aad117-ae9e-4eb6-98c1-87373fd90c31</guid><dc:creator>williamm0010</dc:creator><description>&lt;p&gt;I am using the validation feature on the upload file component, when you pick a file that is not a csv file it tells the user the file is invalid and to remove it and pick a csv file.&amp;nbsp; But I need the submit button to stay disabled until they pick a csv file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: File Upload Validate Extension On Button Disabled</title><link>https://community.appian.com/thread/98371?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 19:20:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f974706f-35df-4fca-9aa1-b6c9c9f8410b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The best way to add a validation to your form is to use the validation feature of each input component. Is there a specific reason for not using that?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>