<?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: Accessing date fields</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Accessing date fields</description>
<language>en</language>
<pubDate>Mon, 22 Jun 2026 07:57:19 +0000</pubDate>

<item>
<title>yuniar on "Accessing date fields"</title>
<link>https://www.machform.com/forums/topic/accessing-date-fields#post-11569</link>
<pubDate>Mon, 07 Mar 2011 07:00:17 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">11569@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Actually, I was asking the same thing. It depends on where you put the above code.
&#60;/p&#62;</description>
</item>
<item>
<title>blogjunkie on "Accessing date fields"</title>
<link>https://www.machform.com/forums/topic/accessing-date-fields#post-11563</link>
<pubDate>Sun, 06 Mar 2011 00:26:14 +0000</pubDate>
<dc:creator>blogjunkie</dc:creator>
<guid isPermaLink="false">11563@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Yuniar, if I want to view the $form_values variables where do I put the print_r? Is it in includes/post-functions.php? Or on my form page where I integrated the advanced form code? Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Accessing date fields"</title>
<link>https://www.machform.com/forums/topic/accessing-date-fields#post-11102</link>
<pubDate>Tue, 21 Dec 2010 17:44:36 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">11102@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;where did you put the above code? Try to dump the whole content of your $form_values variable to see where the date variable being held.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;print_r($form_values);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>grimdesigns on "Accessing date fields"</title>
<link>https://www.machform.com/forums/topic/accessing-date-fields#post-11100</link>
<pubDate>Tue, 21 Dec 2010 00:55:13 +0000</pubDate>
<dc:creator>grimdesigns</dc:creator>
<guid isPermaLink="false">11100@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi, I'm trying to access the date fields to see if they are populated or not. I used this code: &#60;/p&#62;
&#60;p&#62;if(array_key_exists('element_51',$form_values)) // textbox field&#60;br /&#62;
{&#60;br /&#62;
     $element_data-&#38;gt;populated_value['element_51']['is_disabled']=1;&#60;br /&#62;
}&#60;br /&#62;
if(array_key_exists('element_66_1',$form_values)) //checkbox&#60;br /&#62;
{&#60;/p&#62;
&#60;p&#62;          $element_data-&#38;gt;populated_value['element_66_1']['is_disabled']=1;&#60;br /&#62;
}&#60;br /&#62;
if(array_key_exists('element_42_1',$form_values)) //date field&#60;br /&#62;
{&#60;/p&#62;
&#60;p&#62;          $element_data-&#38;gt;populated_value['element_42_1']['is_disabled']=1;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;The first two, text field and check box work fine but the date field is not working. I checked to make sure the element id is the right number and it is. I also tried variations of the code like&#60;br /&#62;
if(array_key_exists('element_42',$form_values)) //date field&#60;br /&#62;
if(array_key_exists('element_42_1_1',$form_values)) //date field&#60;/p&#62;
&#60;p&#62;But nothing works and I cant access the field.&#60;br /&#62;
Basically what I'm trying to do is disable the date field (including the calendar icon) from being changed (not for all date fields just for two on the form)&#60;/p&#62;
&#60;p&#62;Thanks for any help and insight&#60;br /&#62;
Garfield
&#60;/p&#62;</description>
</item>

</channel>
</rss>
