<?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: Eliminate "day" requirement from calendar</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Eliminate "day" requirement from calendar</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 01:30:59 +0000</pubDate>

<item>
<title>redityo on "Eliminate "day" requirement from calendar"</title>
<link>https://www.machform.com/forums/topic/eliminate-day-requirement-from-calendar#post-5539</link>
<pubDate>Tue, 21 Apr 2009 10:36:02 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5539@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;It seems the problem you've set the wrong condition. Now your condition is :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($_GET[&#38;#39;id&#38;#39;] == 9 &#38;#38;&#38;#38; $element-&#38;gt;id == 1)
{
$add_style = &#38;#39;style=&#38;quot;display:none&#38;quot;&#38;#39;;
$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_1&#38;#39;][&#38;#39;default_value&#38;#39;] = &#38;quot;01&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But when I look to your form it should be like this &#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 == 9)
{
$add_style = &#38;#39;style=&#38;quot;display:none&#38;quot;&#38;#39;;
$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_1&#38;#39;][&#38;#39;default_value&#38;#39;] = &#38;quot;01&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and for your information I've reply your mail also, let's continue there if you still have the problem :)
&#60;/p&#62;</description>
</item>
<item>
<title>jlking98 on "Eliminate "day" requirement from calendar"</title>
<link>https://www.machform.com/forums/topic/eliminate-day-requirement-from-calendar#post-5536</link>
<pubDate>Mon, 20 Apr 2009 21:12:16 +0000</pubDate>
<dc:creator>jlking98</dc:creator>
<guid isPermaLink="false">5536@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I revised my form to have dd/mm/yyyy format and then I edited my view-function.php with the suggested code from this post and the complete post above. However, my form is showing the &#34;dd&#34;.  What am I doing wrong?  I have included the code from the view-function.php.  &#60;/p&#62;
&#60;p&#62;My form can be viewed here:  &#60;a href=&#34;http://www.landscapepayments.com/machform/view.php?id=1&#34; rel=&#34;nofollow&#34;&#62;http://www.landscapepayments.com/machform/view.php?id=1&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;if ($_GET['id'] == 9 &#38;#38;&#38;#38; $element-&#38;gt;id == 1)&#60;br /&#62;
{&#60;br /&#62;
$add_style = 'style=&#34;display:none&#34;';&#60;br /&#62;
$element-&#38;gt;populated_value['element_'.$element-&#38;gt;id.'_1']['default_value'] = &#34;01&#34;;&#60;br /&#62;
}&#60;br /&#62;
$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT&#60;br /&#62;
		&#38;lt;li id=&#34;li_{$element-&#38;gt;id}&#34; {$error_class}&#38;gt;&#60;br /&#62;
		&#38;lt;label class=&#34;description&#34;&#38;gt;{$element-&#38;gt;title} {$span_required}&#38;lt;/label&#38;gt;&#60;br /&#62;
		&#38;lt;span {$add_style}&#38;gt;&#60;br /&#62;
			&#38;lt;input id=&#34;element_{$element-&#38;gt;id}_1&#34; name=&#34;element_{$element-&#38;gt;id}_1&#34; class=&#34;element text&#34; size=&#34;2&#34; maxlength=&#34;2&#34; value=&#34;{$element-&#38;gt;populated_value['element_'.$element-&#38;gt;id.'_1']['default_value']}&#34; type=&#34;text&#34; /&#38;gt; /&#60;br /&#62;
			&#38;lt;label for=&#34;element_{$element-&#38;gt;id}_1&#34;&#38;gt;{$lang['date_dd']}&#38;lt;/label&#38;gt;&#60;br /&#62;
		&#38;lt;/span&#38;gt;&#60;br /&#62;
		&#38;lt;span&#38;gt;&#60;br /&#62;
			&#38;lt;input id=&#34;element_{$element-&#38;gt;id}_2&#34; name=&#34;element_{$element-&#38;gt;id}_2&#34; class=&#34;element text&#34; size=&#34;2&#34; maxlength=&#34;2&#34; value=&#34;{$element-&#38;gt;populated_value['element_'.$element-&#38;gt;id.'_2']['default_value']}&#34; type=&#34;text&#34; /&#38;gt; /&#60;br /&#62;
			&#38;lt;label for=&#34;element_{$element-&#38;gt;id}_2&#34;&#38;gt;{$lang['date_mm']}&#38;lt;/label&#38;gt;&#60;br /&#62;
		&#38;lt;/span&#38;gt;&#60;br /&#62;
		&#38;lt;span&#38;gt;&#60;br /&#62;
	 		&#38;lt;input id=&#34;element_{$element-&#38;gt;id}_3&#34; name=&#34;element_{$element-&#38;gt;id}_3&#34; class=&#34;element text&#34; size=&#34;4&#34; maxlength=&#34;4&#34; value=&#34;{$element-&#38;gt;populated_value['element_'.$element-&#38;gt;id.'_3']['default_value']}&#34; type=&#34;text&#34; /&#38;gt;&#60;br /&#62;
			&#38;lt;label for=&#34;element_{$element-&#38;gt;id}_3&#34;&#38;gt;{$lang['date_yyyy']}&#38;lt;/label&#38;gt;&#60;br /&#62;
		&#38;lt;/span&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Eliminate "day" requirement from calendar"</title>
<link>https://www.machform.com/forums/topic/eliminate-day-requirement-from-calendar#post-5499</link>
<pubDate>Fri, 17 Apr 2009 09:39:44 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5499@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;You need to give default value for &#34;day&#34; field to do that. For example you have form id = 1 and date element id = 2, then edit your &#34;view-function.php&#34; and go around line 425 you will 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 this code exactly bellow 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 == 2)
{
$add_style = &#38;#39;style=&#38;quot;display:none&#38;quot;&#38;#39;;
$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_1&#38;#39;][&#38;#39;default_value&#38;#39;] = &#38;quot;01&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You also can see in here for my complete post&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/credit-card-date?replies=5&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/credit-card-date?replies=5&#60;/a&#62;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>jlking98 on "Eliminate "day" requirement from calendar"</title>
<link>https://www.machform.com/forums/topic/eliminate-day-requirement-from-calendar#post-5493</link>
<pubDate>Fri, 17 Apr 2009 00:07:42 +0000</pubDate>
<dc:creator>jlking98</dc:creator>
<guid isPermaLink="false">5493@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have removed the calender picker/icon from my form and have managed to remove the &#34;day&#34; section from my date fields.  However, the form is still requiring that field to be entered.  Can you tell me where in the post-functions.php file where I would disable the rules for the &#34;day&#34; requirement?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
