<?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: Auto Clear Field</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Auto Clear Field</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 01:29:16 +0000</pubDate>

<item>
<title>redityo on "[closed] Auto Clear Field"</title>
<link>https://www.machform.com/forums/topic/auto-clear-field#post-5353</link>
<pubDate>Sat, 04 Apr 2009 22:24:49 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5353@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You need to edit &#34;view-functions.php&#34; file to do that. If you have text field with element id = 1 in form 1, then try to follow these steps :&#60;/p&#62;
&#60;p&#62;1. Go to around line 39 and you'll see this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;put these code above that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($_GET[&#38;#39;id&#38;#39;]  == 1 &#38;#38;&#38;#38; $element-&#38;gt;id == &#38;#39;1&#38;#39;) {
	$reset_data = &#38;quot;onClick=\&#38;quot;javascript:this.value=&#38;#39;&#38;#39;;\&#38;quot;&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. Go to around line 48, you'll see this 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 text {$element-&#38;gt;size}&#38;quot; type=&#38;quot;text&#38;quot; value=&#38;quot;{$element-&#38;gt;default_value}&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace with this one&#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; {$reset_data}
  class=&#38;quot;element text {$element-&#38;gt;size}&#38;quot; type=&#38;quot;text&#38;quot; value=&#38;quot;{$element-&#38;gt;default_value}&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Jerry82 on "[closed] Auto Clear Field"</title>
<link>https://www.machform.com/forums/topic/auto-clear-field#post-5339</link>
<pubDate>Sat, 04 Apr 2009 00:26:31 +0000</pubDate>
<dc:creator>Jerry82</dc:creator>
<guid isPermaLink="false">5339@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;How do I get the field default value to disappear when the field is clicked?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
