<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Field need to be required for new record created from mention date</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/4144/field-need-to-be-required-for-new-record-created-from-mention-date</link><description>I have created a new field in one of the module and that field needs to be required for created after any set date (i.e. 2020-10-20), that should not be required for old records. I am using the below formula to achieve this but somehow the formula is</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Field need to be required for new record created from mention date</title><link>https://sugarclub.sugarcrm.com/thread/21200?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 09:24:34 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:59439268-2711-464b-ab0f-614b8016c247</guid><dc:creator>Gurpreet Singh</dc:creator><description>&lt;p&gt;&lt;a href="/members/neej"&gt;Neeraja P&lt;/a&gt; Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Field need to be required for new record created from mention date</title><link>https://sugarclub.sugarcrm.com/thread/21196?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 08:20:59 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:aeb0fc1d-d351-4971-a8bc-553206fa20e8</guid><dc:creator>Neeraja P</dc:creator><description>&lt;p&gt;The field that you need to use for &amp;quot;Created Date&amp;quot; is &lt;em&gt;$date_entered&lt;/em&gt; and not date_created.&lt;/p&gt;
&lt;p&gt;So for new records (create view), you can use &lt;em&gt;equal($id, &amp;quot;&amp;quot;)&lt;/em&gt;, as Andre suggested.&lt;/p&gt;
&lt;p&gt;For existing records (record view), you can use&amp;nbsp;&lt;em&gt;isAfter($date_entered,date(&amp;quot;2020-10-20&amp;quot;))&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, the final&amp;nbsp;criteria that you need to use is a slightly modified version of Andre&amp;#39;s solution:&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;or(equal($id,&amp;quot;&amp;quot;), isAfter($date_entered,date(&amp;quot;2020-10-20&amp;quot;)))&lt;/span&gt;&lt;/pre&gt;
&lt;div class="content full threaded-reply-content user-defined-markup"&gt;
&lt;div class="content"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="signature"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="edit-form"&gt;&lt;/div&gt;
&lt;div class="actions meta default"&gt;
&lt;div class="navigation-list"&gt;
&lt;div class="container"&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Field need to be required for new record created from mention date</title><link>https://sugarclub.sugarcrm.com/thread/21195?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 04:26:13 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:d2e6bf8a-cc27-4eab-9bf0-f6202fb9521f</guid><dc:creator>Gurpreet Singh</dc:creator><description>&lt;p&gt;Thanks for your response, but below code is not working:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;isAfter($date_created,date(&amp;quot;2020-10-20&amp;quot;))&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Field need to be required for new record created from mention date</title><link>https://sugarclub.sugarcrm.com/thread/21187?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 14:53:11 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:b32b10c2-6e55-4c83-84a4-36e1e0bfb50a</guid><dc:creator>Andr&amp;#233; Lopes</dc:creator><description>&lt;p&gt;Perhaps this formula works&lt;/p&gt;
&lt;p&gt;or(equal($id,&amp;quot;&amp;quot;)isAfter($date_created,date(&amp;quot;2020-10-20&amp;quot;)))&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Field need to be required for new record created from mention date</title><link>https://sugarclub.sugarcrm.com/thread/21186?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 14:49:04 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:b77d84d7-0627-475c-a434-ab1cd9f96fd4</guid><dc:creator>Gurpreet Singh</dc:creator><description>&lt;p&gt;&lt;a href="/members/neej"&gt;Neeraja P&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>