<?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 Deleting Field Default Custom Javascipt</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Auto Deleting Field Default Custom Javascipt</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:09:21 +0000</pubDate>

<item>
<title>eventura on "Auto Deleting Field Default Custom Javascipt"</title>
<link>https://www.machform.com/forums/topic/auto-deleting-field-default-custom-javascipt#post-23064</link>
<pubDate>Sat, 04 Apr 2015 16:38:47 +0000</pubDate>
<dc:creator>eventura</dc:creator>
<guid isPermaLink="false">23064@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Guys&#60;/p&#62;
&#60;p&#62;Been asked for this a number of times and so wrote a custom javascript for the relevant form. You can replicate the code for each field and amend the field number / text appropriately. Hope it helps.&#60;/p&#62;
&#60;p&#62;$(document).ready(function(){&#60;/p&#62;
&#60;p&#62;    //Set Name Field Default&#60;br /&#62;
    $('#element_1').val(&#34;Name&#34;);&#60;br /&#62;
    $('#element_1').css(&#34;color&#34;, &#34;#ccc&#34;);&#60;br /&#62;
    $('#element_1').focus(function(){&#60;br /&#62;
        $(this).css(&#34;color&#34;, &#34;black&#34;);&#60;br /&#62;
        if ($(this).val() == &#34;Name&#34;) {&#60;br /&#62;
            $(this).val(&#34;&#34;);&#60;br /&#62;
        }&#60;br /&#62;
		});&#60;br /&#62;
	$('#element_1').blur(function(){&#60;br /&#62;
        $(this).css(&#34;color&#34;, &#34;#ccc&#34;);&#60;br /&#62;
        if ($(this).val() == &#34;&#34;) {&#60;br /&#62;
            $(this).val(&#34;Name&#34;);&#60;br /&#62;
        }&#60;br /&#62;
    });&#60;br /&#62;
   // End of Name Field&#60;/p&#62;
&#60;p&#62;});
&#60;/p&#62;</description>
</item>

</channel>
</rss>
