<?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: Showing default values that disappear once a user clicks in the field</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Showing default values that disappear once a user clicks in the field</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 00:29:48 +0000</pubDate>

<item>
<title>williamansley on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-23350</link>
<pubDate>Wed, 27 May 2015 21:34:16 +0000</pubDate>
<dc:creator>williamansley</dc:creator>
<guid isPermaLink="false">23350@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Wow! Version 4.4 is going to be a really big update. I can hardly wait!
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-23343</link>
<pubDate>Wed, 27 May 2015 11:43:42 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">23343@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This will be available as built-in feature within v4.4. We'll be releasing it next month (June)
&#60;/p&#62;</description>
</item>
<item>
<title>atypicalv on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-23337</link>
<pubDate>Tue, 26 May 2015 11:54:30 +0000</pubDate>
<dc:creator>atypicalv</dc:creator>
<guid isPermaLink="false">23337@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Just followed this for v4.3 and got it to work, so posting for anyone else with questions. &#60;/p&#62;
&#60;p&#62;For v4.3, in the view-functions.php file look around line &#60;strong&#62;144&#60;/strong&#62; for the $element_markup to insert the &#60;strong&#62;onclick &#38;#38; onblur&#60;/strong&#62; functions. &#60;/p&#62;
&#60;p&#62;Then look around line &#60;strong&#62;5393&#60;/strong&#62; to insert the additional javascript, after the &#60;strong&#62;&#38;lt;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34;{$machform_path}{$css_dir}view.css&#34; media=&#34;all&#34; /&#38;gt;&#60;/strong&#62;.&#60;/p&#62;
&#60;p&#62;Cheers.
&#60;/p&#62;</description>
</item>
<item>
<title>ryanmilles on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-20418</link>
<pubDate>Tue, 11 Mar 2014 00:33:33 +0000</pubDate>
<dc:creator>ryanmilles</dc:creator>
<guid isPermaLink="false">20418@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Any update or solution to this yet for v3.4 and above?
&#60;/p&#62;</description>
</item>
<item>
<title>ryanmilles on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-20376</link>
<pubDate>Thu, 06 Mar 2014 03:06:47 +0000</pubDate>
<dc:creator>ryanmilles</dc:creator>
<guid isPermaLink="false">20376@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;ahhh.. this is for machform 2.  I definitely need a solution to this for version 3.4
&#60;/p&#62;</description>
</item>
<item>
<title>ryanmilles on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-20369</link>
<pubDate>Thu, 06 Mar 2014 02:37:35 +0000</pubDate>
<dc:creator>ryanmilles</dc:creator>
<guid isPermaLink="false">20369@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I did a search in the view-functions.php for the code posted above by redityo:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT
		&#38;lt;li id=&#38;quot;li_{$element-&#38;gt;id}&#38;quot; {$error_class}&#38;gt;
		&#38;lt;label class=&#38;quot;description&#38;quot; for=&#38;quot;element_{$element-&#38;gt;id}&#38;quot;&#38;gt;{$element-&#38;gt;title} {$span_required}&#38;lt;/label&#38;gt;
		&#38;lt;div&#38;gt;
			&#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;
		&#38;lt;/div&#38;gt;{$guidelines} {$error_message}
		&#38;lt;/li&#38;gt;
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but it does not come up at all, and is definitely not in &#34;line 40 ~ 50&#34;...  i think this entire method is outdated (4 years ago), and no longer is suitable for functionality.  I need to do this exact same thing &#34;Showing default values that disappear once a user clicks in the field&#34; but then also reappears when clicked out of the field.  Is this possible? Shouldn't it be a standard feature?  Help!
&#60;/p&#62;</description>
</item>
<item>
<title>ryanmilles on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-20366</link>
<pubDate>Thu, 06 Mar 2014 02:05:43 +0000</pubDate>
<dc:creator>ryanmilles</dc:creator>
<guid isPermaLink="false">20366@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have tried to implement this, copying what Machmail and klintrudolph have posted, but can't get it to work.  :/&#60;/p&#62;
&#60;p&#62;Any insight or advice from the admins?  Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>klintrudolph on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-18347</link>
<pubDate>Thu, 23 May 2013 05:58:02 +0000</pubDate>
<dc:creator>klintrudolph</dc:creator>
<guid isPermaLink="false">18347@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Doh! Same as others... &#60;/p&#62;
&#60;p&#62;To add this to the email fields look near line 729 of includes/view-functions.php you'll find the function:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//Email
function mf_display_email($element){&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;towards the end of this function you'll see the $element_markup output and you just need to do the same thing.&#60;/p&#62;
&#60;p&#62;from:&#60;br /&#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; maxlength=&#38;quot;255&#38;quot; value=&#38;quot;{$element-&#38;gt;default_value}&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to: &#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; onclick=&#38;quot;resetBox(this, &#38;#39;{$element-&#38;gt;default_value}&#38;#39;)&#38;quot; onblur=&#38;quot;resetCustomValue(this, &#38;#39;{$element-&#38;gt;default_value}&#38;#39;)&#38;quot; class=&#38;quot;element text {$element-&#38;gt;size}&#38;quot; type=&#38;quot;text&#38;quot; maxlength=&#38;quot;255&#38;quot; value=&#38;quot;{$element-&#38;gt;default_value}&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>klintrudolph on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-18270</link>
<pubDate>Tue, 14 May 2013 07:21:28 +0000</pubDate>
<dc:creator>klintrudolph</dc:creator>
<guid isPermaLink="false">18270@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I forgot to ask. I haven't figured out how to do this for the 'email' fields. Any ideas?
&#60;/p&#62;</description>
</item>
<item>
<title>klintrudolph on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-18269</link>
<pubDate>Tue, 14 May 2013 07:19:40 +0000</pubDate>
<dc:creator>klintrudolph</dc:creator>
<guid isPermaLink="false">18269@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I added another step to this with another function for the onblur event. This way, when you click out it comes back. &#60;/p&#62;
&#60;p&#62;in your js file  (same one as above is fine):&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function resetCustomValue(box, defaultvalue) {
	if (box.value == &#38;#39;&#38;#39;) {
		box.value = defaultvalue;

	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;In your includes/view-functions.php you add another attribute to all instances of the desired fields. Just like we already did for the onclick event, we are adding the onblur event. You need to find all desired fields such as input and textarea and add both attributes to all of them:&#60;br /&#62;
&#60;code&#62;onclick=&#38;quot;resetBox(this, &#38;#39;{$element-&#38;gt;default_value}&#38;#39;)&#38;quot; onblur=&#38;quot;resetCustomValue(this, &#38;#39;{$element-&#38;gt;default_value}&#38;#39;)&#38;quot;&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>arnaudboub on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-12853</link>
<pubDate>Tue, 01 Nov 2011 18:02:51 +0000</pubDate>
<dc:creator>arnaudboub</dc:creator>
<guid isPermaLink="false">12853@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Great !&#60;br /&#62;
Thank you Machmail
&#60;/p&#62;</description>
</item>
<item>
<title>Machmail on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-12632</link>
<pubDate>Fri, 23 Sep 2011 20:28:35 +0000</pubDate>
<dc:creator>Machmail</dc:creator>
<guid isPermaLink="false">12632@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;&#60;strong&#62;hotchecks&#60;/strong&#62; there is a better solution, which will reset &#60;strong&#62;only&#60;/strong&#62; the default field value:&#60;/p&#62;
&#60;p&#62;Save this code into file &#60;strong&#62;js\reset_field.js&#60;/strong&#62;:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function resetBox(box, defaultvalue) {
	if (box.value == defaultvalue) {
		box.value = &#38;quot;&#38;quot;;
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Near line 50 in &#60;strong&#62;includes\view-functions.php&#60;/strong&#62; change&#60;/p&#62;
&#60;p&#62;from:&#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;to:&#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; onclick=&#38;quot;resetBox(this, &#38;#39;{$element-&#38;gt;default_value}&#38;#39;)&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Near line 1850 in &#60;strong&#62;includes\view-functions.php&#60;/strong&#62; change&#60;/p&#62;
&#60;p&#62;from:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; type=&#38;quot;text/css&#38;quot; href=&#38;quot;{$css_dir}view.css&#38;quot; media=&#38;quot;all&#38;quot; /&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;js/view.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; type=&#38;quot;text/css&#38;quot; href=&#38;quot;{$css_dir}view.css&#38;quot; media=&#38;quot;all&#38;quot; /&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;js/view.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;js/reset_field.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>hotchecks on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-11617</link>
<pubDate>Thu, 17 Mar 2011 08:21:33 +0000</pubDate>
<dc:creator>hotchecks</dc:creator>
<guid isPermaLink="false">11617@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I've also implemented this tweak (perhaps it could come as standard?)&#60;/p&#62;
&#60;p&#62;line 44 of includes/view-functions.ph&#60;/p&#62;
&#60;p&#62;From:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
&#38;lt;input id=&#34;element_{$element-&#38;gt;id}&#34; name=&#34;element_{$element-&#38;gt;id}&#34; class=&#34;element text {$element-&#38;gt;size}&#34; type=&#34;text&#34; value=&#34;{$element-&#38;gt;default_value}&#34; /&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;To:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
&#38;lt;input id=&#34;element_{$element-&#38;gt;id}&#34; name=&#34;element_{$element-&#38;gt;id}&#34; class=&#34;element text {$element-&#38;gt;size}&#34; type=&#34;text&#34; value=&#34;{$element-&#38;gt;default_value}&#34; onclick=&#34;this.value='';&#34; /&#38;gt;&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>raewell on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-7199</link>
<pubDate>Thu, 03 Sep 2009 21:36:57 +0000</pubDate>
<dc:creator>raewell</dc:creator>
<guid isPermaLink="false">7199@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have just sent the file to the address. &#60;/p&#62;
&#60;p&#62;What great customer service ! I really appreciate this assitance.&#60;/p&#62;
&#60;p&#62;Raewell Graphics
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-7176</link>
<pubDate>Wed, 02 Sep 2009 22:11:14 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">7176@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello raewell,&#60;/p&#62;
&#60;p&#62;Can you send us your modified &#34;includes/view-functions.php&#34; file please?&#60;br /&#62;
We'll check it.&#60;/p&#62;
&#60;p&#62;Please send to: customer.service [at] appnitro.com
&#60;/p&#62;</description>
</item>
<item>
<title>raewell on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-7151</link>
<pubDate>Tue, 01 Sep 2009 11:08:33 +0000</pubDate>
<dc:creator>raewell</dc:creator>
<guid isPermaLink="false">7151@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you so much for the quick reponse. I tried the solution but ended up with an error. I know it was a mistake I made so if you (or anyone else) can look at the form on the right hand side of &#60;a href=&#34;http://www.renewingsmiles.com&#34; rel=&#34;nofollow&#34;&#62;www.renewingsmiles.com&#60;/a&#62; . The form id is 5.&#60;/p&#62;
&#60;p&#62;I think I need to know exactly what to replace in the above solution so this will work. &#60;/p&#62;
&#60;p&#62;If you could use any other info from me, I will get it to you right away.&#60;/p&#62;
&#60;p&#62;I really appreciate your assistance and enjoy working with your product.
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-7011</link>
<pubDate>Sun, 23 Aug 2009 10:59:45 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">7011@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Raewell,&#60;/p&#62;
&#60;p&#62;I think it could be done, let's say your 3 field information is like this :&#60;/p&#62;
&#60;p&#62;* full name : element 1, default value is name&#60;br /&#62;
* phone : element 2, default value is phone&#60;br /&#62;
* email : element 3, default value is email&#60;/p&#62;
&#60;p&#62;I assume all filed on form id 17, Then you need to edit &#34;includes/view-functions.php&#34;, try to follow these steps :&#60;/p&#62;
&#60;p&#62;1. Go to around line 40 ~ 50, you will see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT
		&#38;lt;li id=&#38;quot;li_{$element-&#38;gt;id}&#38;quot; {$error_class}&#38;gt;
		&#38;lt;label class=&#38;quot;description&#38;quot; for=&#38;quot;element_{$element-&#38;gt;id}&#38;quot;&#38;gt;{$element-&#38;gt;title} {$span_required}&#38;lt;/label&#38;gt;
		&#38;lt;div&#38;gt;
			&#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;
		&#38;lt;/div&#38;gt;{$guidelines} {$error_message}
		&#38;lt;/li&#38;gt;
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace with these one &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($_GET[&#38;#39;id&#38;#39;] == 17) {
	if ($element-&#38;gt;id == 1 &#124;&#124; $element-&#38;gt;id == 2 &#124;&#124; $element-&#38;gt;id == 3 ) {
		$onclick_event = &#38;#39; onclick=&#38;quot;javascript:reset_field(\&#38;#39;&#38;#39;.$element-&#38;gt;id.&#38;#39;\&#38;#39;)&#38;quot; &#38;#39;;
	}
}

$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT
		&#38;lt;li id=&#38;quot;li_{$element-&#38;gt;id}&#38;quot; {$error_class}&#38;gt;
		&#38;lt;label class=&#38;quot;description&#38;quot; for=&#38;quot;element_{$element-&#38;gt;id}&#38;quot;&#38;gt;{$element-&#38;gt;title} {$span_required}&#38;lt;/label&#38;gt;
		&#38;lt;div&#38;gt;
			&#38;lt;input {$onclick_event} 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;
		&#38;lt;/div&#38;gt;{$guidelines} {$error_message}
		&#38;lt;/li&#38;gt;
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. Go to around line 1832 ~ 1827, you will see these code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($has_calendar){
	$calendar_js = &#38;#39;&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;js/calendar.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#38;#39;;
}else{
	$calendar_js = &#38;#39;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;put these code exactly bellow that code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($form_id == 17) {
		$javascript_event = &#38;lt;&#38;lt;&#38;lt;EOT
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;js/jquery/jquery-core.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
	function reset_field(element_id)
	{
		if ($(&#38;#39;#element_&#38;#39;+element_id).val() == &#38;#39;name&#38;#39; &#124;&#124;
			$(&#38;#39;#element_&#38;#39;+element_id).val() == &#38;#39;phone&#38;#39; &#124;&#124;
			$(&#38;#39;#element_&#38;#39;+element_id).val() == &#38;#39;email&#38;#39;
			){

		$(&#38;#39;#element_&#38;#39;+element_id).val(&#38;#39;&#38;#39;);

		}
	}
&#38;lt;/script&#38;gt;
EOT;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;3. Go to line 1855, you'll see&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;js/view.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then put this code bellow that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;{$javascript_event}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Don't forget to change those id with yours
&#60;/p&#62;</description>
</item>
<item>
<title>raewell on "Showing default values that disappear once a user clicks in the field"</title>
<link>https://www.machform.com/forums/topic/showing-default-values-that-disappear-once-a-user-clicks-in-the-field#post-6988</link>
<pubDate>Fri, 21 Aug 2009 02:40:07 +0000</pubDate>
<dc:creator>raewell</dc:creator>
<guid isPermaLink="false">6988@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I am trying to edit a clients form (they are using MachForm). They want the form to display like the form on this site... &#60;a href=&#34;http://www.pdxsmiles.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.pdxsmiles.com/&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;They are trying to condende the existing form they have to open up space. They feel that instead of using a label like &#34;Name:&#34; next to or above the feild, they want the default value listed in the field. When the user clicks in the field, the default value disappears allowing them to enter the info.&#60;/p&#62;
&#60;p&#62;Any suggestions would be appreciated.&#60;/p&#62;
&#60;p&#62;Raewell
&#60;/p&#62;</description>
</item>

</channel>
</rss>
