<?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: Time Validation</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Time Validation</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 00:08:38 +0000</pubDate>

<item>
<title>tmparisi on "Time Validation"</title>
<link>https://www.machform.com/forums/topic/time-validation-1#post-13948</link>
<pubDate>Sat, 17 Mar 2012 21:54:18 +0000</pubDate>
<dc:creator>tmparisi</dc:creator>
<guid isPermaLink="false">13948@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This is what was added to the post-functions.php file right above line 1367 ($form_unique_ip = $row['form_unique_ip'];).... thanks to MachForm it now works perfect:&#60;/p&#62;
&#60;p&#62;if ($form_id == 2) {&#60;br /&#62;
    //time validation&#60;br /&#62;
    $time_element_id = 4;&#60;/p&#62;
&#60;p&#62;    if (!empty($table_data['element_' . $time_element_id])) {&#60;br /&#62;
        $time_extract = array();&#60;br /&#62;
        $time_extract = explode(&#34;:&#34;,$table_data['element_' . $time_element_id]);&#60;/p&#62;
&#60;p&#62;        if ($time_extract[0] &#38;lt; '16') {&#60;br /&#62;
             $error_elements[$time_element_id] = 'Time only allowed more than 4PM';&#60;br /&#62;
        }&#60;br /&#62;
    }&#60;br /&#62;
}
&#60;/p&#62;</description>
</item>
<item>
<title>tmparisi on "Time Validation"</title>
<link>https://www.machform.com/forums/topic/time-validation-1#post-13894</link>
<pubDate>Thu, 15 Mar 2012 22:54:53 +0000</pubDate>
<dc:creator>tmparisi</dc:creator>
<guid isPermaLink="false">13894@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Anyone have a thought?
&#60;/p&#62;</description>
</item>
<item>
<title>tmparisi on "Time Validation"</title>
<link>https://www.machform.com/forums/topic/time-validation-1#post-13803</link>
<pubDate>Tue, 13 Mar 2012 11:53:09 +0000</pubDate>
<dc:creator>tmparisi</dc:creator>
<guid isPermaLink="false">13803@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I am assuming both of these would need to be done in the actual PHP...?
&#60;/p&#62;</description>
</item>
<item>
<title>tmparisi on "Time Validation"</title>
<link>https://www.machform.com/forums/topic/time-validation-1#post-13792</link>
<pubDate>Tue, 13 Mar 2012 02:06:52 +0000</pubDate>
<dc:creator>tmparisi</dc:creator>
<guid isPermaLink="false">13792@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;In version 3 is there a way to set a validation on the time?  For example, if the user enters a value less than 4:00pm, an error will be displayed.&#60;/p&#62;
&#60;p&#62;Also, can the 'AM' field be taken out of the dropdown?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
