<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Remove file to be uploaded</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Remove file to be uploaded</description>
<language>en</language>
<pubDate>Sat, 20 Jun 2026 17:51:36 +0000</pubDate>

<item>
<title>neilo on "Remove file to be uploaded"</title>
<link>https://www.machform.com/forums/topic/remove-file-to-be-uploaded#post-7463</link>
<pubDate>Mon, 28 Sep 2009 10:52:07 +0000</pubDate>
<dc:creator>neilo</dc:creator>
<guid isPermaLink="false">7463@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Nice one - this should be a 'sticky'!
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Remove file to be uploaded"</title>
<link>https://www.machform.com/forums/topic/remove-file-to-be-uploaded#post-6916</link>
<pubDate>Thu, 13 Aug 2009 21:49:51 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">6916@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;You can add a custom clear button beside &#34;file upload&#34; field. To do so, you need to edit &#34;includes/view-functions.php&#34; file. Go to around line 127, you will see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}&#38;quot; class=&#38;quot;element file&#38;quot; type=&#38;quot;file&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;put these code exactly bellow that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;input id=&#38;quot;reset&#38;quot; type=&#38;quot;button&#38;quot; onclick=&#38;quot;javascript:clearFileInputField(&#38;#39;li_{$element-&#38;gt;id}&#38;#39;);&#38;quot; value=&#38;quot;Clear&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then, go to line 1834, you will see this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;{$calendar_js}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;put these code bellow that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;

function clearFileInputField(tagId)
{ document.getElementById(tagId).innerHTML = document.getElementById(tagId).innerHTML; } 

&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>isak on "Remove file to be uploaded"</title>
<link>https://www.machform.com/forums/topic/remove-file-to-be-uploaded#post-6904</link>
<pubDate>Thu, 13 Aug 2009 02:43:53 +0000</pubDate>
<dc:creator>isak</dc:creator>
<guid isPermaLink="false">6904@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;If someone selects a file to upload from their computer, then decides they do not want to upload a file, is there a way they can remove/delete their choice before they submit the form?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
