<?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: Logic Builder condition for date field relative to current date</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Logic Builder condition for date field relative to current date</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:05:41 +0000</pubDate>

<item>
<title>jrmedia on "Logic Builder condition for date field relative to current date"</title>
<link>https://www.machform.com/forums/topic/logic-builder-condition-for-date-field-relative-to-current-date#post-17673</link>
<pubDate>Sun, 17 Mar 2013 00:49:29 +0000</pubDate>
<dc:creator>jrmedia</dc:creator>
<guid isPermaLink="false">17673@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This is a great idea for something such as an &#34;age of majority&#34; checker, to have the person enter their date of birth and display additional information (such as parent/guardian information).&#60;/p&#62;
&#60;p&#62;I'm looking at this thread and the code makes no sense to me (I'm a designer, not a developer).&#60;/p&#62;
&#60;p&#62;What do I need to do to implement the fix shown here?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Logic Builder condition for date field relative to current date"</title>
<link>https://www.machform.com/forums/topic/logic-builder-condition-for-date-field-relative-to-current-date#post-17362</link>
<pubDate>Fri, 22 Feb 2013 11:24:18 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">17362@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;awesome! :-)
&#60;/p&#62;</description>
</item>
<item>
<title>timcov on "Logic Builder condition for date field relative to current date"</title>
<link>https://www.machform.com/forums/topic/logic-builder-condition-for-date-field-relative-to-current-date#post-17342</link>
<pubDate>Thu, 21 Feb 2013 05:36:04 +0000</pubDate>
<dc:creator>timcov</dc:creator>
<guid isPermaLink="false">17342@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Many Thanks Yuniar - it works. For anyone that needs it the sql query I used to reset the day in the condition to &#34;the day after tomorrow&#34; was:&#60;/p&#62;
&#60;p&#62;$sql = &#34;UPDATE &#60;code&#62;my_dbase_name&#60;/code&#62;.&#60;code&#62;ap_field_logic_conditions&#60;/code&#62; SET &#60;code&#62;rule_keyword&#60;/code&#62; = DATE_ADD(CURRENT_DATE(),INTERVAL 2 DAY) WHERE &#60;code&#62;form_id&#60;/code&#62; =12345 AND &#60;code&#62;rule_condition&#60;/code&#62; = 'is_before'&#34;;&#60;/p&#62;
&#60;p&#62;MySql Event Scheduler would be a better way to run it regularly but my shared hosting doesn't seem to allow me to enable it.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Logic Builder condition for date field relative to current date"</title>
<link>https://www.machform.com/forums/topic/logic-builder-condition-for-date-field-relative-to-current-date#post-17314</link>
<pubDate>Tue, 19 Feb 2013 19:02:06 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">17314@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;If you are familiar with cron job, then yes option B would be the safest and cleanest, because it won't affect any other functionality. Simply update the &#34;rule_keyword&#34; column on &#34;ap_field_logic_conditions&#34; table.
&#60;/p&#62;</description>
</item>
<item>
<title>timcov on "Logic Builder condition for date field relative to current date"</title>
<link>https://www.machform.com/forums/topic/logic-builder-condition-for-date-field-relative-to-current-date#post-17299</link>
<pubDate>Mon, 18 Feb 2013 23:23:03 +0000</pubDate>
<dc:creator>timcov</dc:creator>
<guid isPermaLink="false">17299@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you for the prompt response&#60;br /&#62;
However needing to overcome this for a particular application and not wishing to give up - is it worth my while either:&#60;br /&#62;
a) looking for the php code that applies the rule and trying to &#34;hard code&#34; that rule instead? or&#60;br /&#62;
b) create a cronjob to run a linux job on my hosting each morning that takes today's date, adds 1 to it and then updates the rule in the MySQL table: ap_field_logic_conditions accordingly?&#60;/p&#62;
&#60;p&#62;I appreciate both would be crude solutions but I'm reluctant to ask the administrator to login each morning and change the rule to tomorrows date.&#60;/p&#62;
&#60;p&#62;Option b) is perhaps safest as I only follow enough about php coding to find relevant sections of existing code and make simple tweaks. At least with b) I'm only trying to update one field in one record of the database with a text format of the system date and am not trying to change the code itself?&#60;/p&#62;
&#60;p&#62;Thanks Again
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Logic Builder condition for date field relative to current date"</title>
<link>https://www.machform.com/forums/topic/logic-builder-condition-for-date-field-relative-to-current-date#post-17292</link>
<pubDate>Mon, 18 Feb 2013 21:15:23 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">17292@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi timcov,&#60;/p&#62;
&#60;p&#62;Unfortunately it won't be possible to set relative date as part of the rule. Sorry :(&#60;br /&#62;
Thank you for your feedback on this though. It's a very good idea.
&#60;/p&#62;</description>
</item>
<item>
<title>timcov on "Logic Builder condition for date field relative to current date"</title>
<link>https://www.machform.com/forums/topic/logic-builder-condition-for-date-field-relative-to-current-date#post-17279</link>
<pubDate>Mon, 18 Feb 2013 08:48:53 +0000</pubDate>
<dc:creator>timcov</dc:creator>
<guid isPermaLink="false">17279@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I very new to the MachForm but it is fantastic. I can't believe I've been wasting so much time messing with the hosted solutions such as the numerous online survey builders etc. Complete control over the data at last!&#60;br /&#62;
Anyhow quick question - I can set the default for a date field for &#34;tomorrow&#34; or &#34;+2 days&#34; (surprisingly simple) but that doesn't work in the logic builder which seems to need specific dates. Is there a notation to use to achieve skipping a page unless the value of a date field is tomorrow for example?&#60;br /&#62;
Thanks for a great product.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
