<?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 DD from date field...?</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Remove DD from date field...?</description>
<language>en</language>
<pubDate>Thu, 18 Jun 2026 11:21:49 +0000</pubDate>

<item>
<title>tmparisi on "[closed] Remove DD from date field...?"</title>
<link>https://www.machform.com/forums/topic/remove-dd-from-date-field#post-15538</link>
<pubDate>Mon, 06 Aug 2012 05:41:42 +0000</pubDate>
<dc:creator>tmparisi</dc:creator>
<guid isPermaLink="false">15538@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This worked perfectly, thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>webguyinternet on "[closed] Remove DD from date field...?"</title>
<link>https://www.machform.com/forums/topic/remove-dd-from-date-field#post-15518</link>
<pubDate>Fri, 03 Aug 2012 23:57:45 +0000</pubDate>
<dc:creator>webguyinternet</dc:creator>
<guid isPermaLink="false">15518@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;In my code it was more like line #1236 but I copied that as requested and modified the form_id and element_id to match my specific form (even tripple checked that info) and it still didn't work.  It displays as three dates still.  I see that it will hide the DD form via CSS, but that won't pass validation will it?  Since it is an invalid date without the day field.&#60;/p&#62;
&#60;p&#62;Ultimately it would be better if this format was a part of the &#34;date format&#34; drop down, so along with the option of MM/DD/YYYY you would also see a MM/YYYY option there.  I know that may involve more coding than a simple copy/paste but it would be better than hard-coding it in the script.  Just in case the element ID ever changes or the script is upgraded later.&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;CORRECTION&#60;/strong&#62;: I put it too far down, it was actually around line 1023 and i it did display (in the form) correctly.  I had to remove the date checking from the field (although I could keep the &#34;required&#34; entry) to get it to work.  But my second comment still stands.  This fix is a good temporary fix.&#60;/p&#62;
&#60;p&#62;P.S. I am able to get around the security issue with credit cards because my machforms are ONLY accessible via SSL, the data is only read through the machform website and no email is sent.  I delete the message after the card processes.  It may not be 100% PCI compliant but it is pretty close.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "[closed] Remove DD from date field...?"</title>
<link>https://www.machform.com/forums/topic/remove-dd-from-date-field#post-15510</link>
<pubDate>Fri, 03 Aug 2012 08:20:17 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">15510@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You can edit &#34;includes/view-functions.php&#34; file, search around line 1180 for this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;return $element_markup;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;right above that line of code, add this block of code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($element-&#38;gt;form_id == 8 &#38;#38;&#38;#38; $element-&#38;gt;id == 12 ){
			$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT
		&#38;lt;li id=&#38;quot;li_{$element-&#38;gt;id}&#38;quot; {$li_class}&#38;gt;
		&#38;lt;label class=&#38;quot;description&#38;quot;&#38;gt;{$element-&#38;gt;title} {$span_required}&#38;lt;/label&#38;gt;
		&#38;lt;span&#38;gt;
			&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_1&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_1&#38;quot; class=&#38;quot;element text&#38;quot; size=&#38;quot;2&#38;quot; maxlength=&#38;quot;2&#38;quot; value=&#38;quot;{$default_value_1}&#38;quot; type=&#38;quot;text&#38;quot; /&#38;gt; /
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_1&#38;quot;&#38;gt;{$mf_lang[&#38;#39;date_mm&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/span&#38;gt;
		&#38;lt;span style=&#38;quot;display:none&#38;quot;&#38;gt;
			&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_2&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_2&#38;quot; class=&#38;quot;element text&#38;quot; size=&#38;quot;2&#38;quot; maxlength=&#38;quot;2&#38;quot; value=&#38;quot;1&#38;quot; type=&#38;quot;text&#38;quot; /&#38;gt;
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_2&#38;quot;&#38;gt;{$mf_lang[&#38;#39;date_dd&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/span&#38;gt;
		&#38;lt;span&#38;gt;
	 		&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_3&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_3&#38;quot; class=&#38;quot;element text&#38;quot; size=&#38;quot;4&#38;quot; maxlength=&#38;quot;4&#38;quot; value=&#38;quot;{$default_value_3}&#38;quot; type=&#38;quot;text&#38;quot; /&#38;gt;
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_3&#38;quot;&#38;gt;{$mf_lang[&#38;#39;date_yyyy&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/span&#38;gt;
		{$guidelines} {$error_message}
		&#38;lt;/li&#38;gt;
EOT;

		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;if the above code doesn't display correctly in this forum, you can check this one instead:&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/4381082&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4381082&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>tmparisi on "[closed] Remove DD from date field...?"</title>
<link>https://www.machform.com/forums/topic/remove-dd-from-date-field#post-15496</link>
<pubDate>Thu, 02 Aug 2012 04:43:54 +0000</pubDate>
<dc:creator>tmparisi</dc:creator>
<guid isPermaLink="false">15496@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;MM/DD/YYYY
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "[closed] Remove DD from date field...?"</title>
<link>https://www.machform.com/forums/topic/remove-dd-from-date-field#post-15493</link>
<pubDate>Wed, 01 Aug 2012 19:58:40 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">15493@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;What is the date format you are using? MM/DD/YYYY or DD/MM/YYYY?
&#60;/p&#62;</description>
</item>
<item>
<title>tmparisi on "[closed] Remove DD from date field...?"</title>
<link>https://www.machform.com/forums/topic/remove-dd-from-date-field#post-15486</link>
<pubDate>Wed, 01 Aug 2012 01:01:48 +0000</pubDate>
<dc:creator>tmparisi</dc:creator>
<guid isPermaLink="false">15486@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Is there a way to remove the 'DD' portion of the date field from a specific form, say form #8,  where the date field is attribute_12.  I am using it for a credit card expiration field and the day is not needed and only becomes confusing for users.  Thanks!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
