We want to conditionally display a field when another (date) field is less than today (and other date literals). When using the conditional rendering feature to do this the condition always returns true no matter what date literal we use. If you use simple not null or specific date string is works fine. This was not working on 6.8.19 so we tried 7.19 and it still doesn’t work. Is there something we’re doing wrong? Have attached a simple page to replicate the issue:
<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="false" showheader="false"> <models> <model id="contact" limit="1" query="true" createrowifnonefound="false" adapter="" type="" doclone="" sobject="Contact"> <fields> <field id="AssistantName"/> <field id="Birthdate"/> <field id="Name"/> <field id="AssistantPhone"/> </fields> <conditions/> <actions/> </model> </models> <components> <basicfieldeditor showheader="true" showsavecancel="true" showerrorsinline="true" model="contact" buttonposition="" uniqueid="sk-16d78x-198" mode="edit"> <columns> <column width="100%"> <sections> <section title="" collapsible="no" showheader="false"> <fields> <field id="Name" valuehalign="" type=""/> <field id="Birthdate" valuehalign="" type=""> <label>BirthDate - try setting to '2015-11-26' and &lt; today</label> </field> <field id="AssistantName" valuehalign="" type=""> <label>Render if birthdate &lt; TODAY date literal (but doesn't work?) </label> <renderconditions logictype="and" onhidedatabehavior="keep"> <rendercondition type="fieldvalue" operator="lt" enclosevalueinquotes="false" fieldmodel="contact" sourcetype="fieldvalue" field="Birthdate" value="TODAY"/> </renderconditions> <enableconditions/> </field> <field id="AssistantPhone" valuehalign="" type=""> <label>Render if birthdate = '2015-11-26' specific date (works)</label> <renderconditions logictype="and" onhidedatabehavior="keep"> <rendercondition type="fieldvalue" operator="=" enclosevalueinquotes="false" fieldmodel="contact" sourcetype="fieldvalue" field="Birthdate" value="2015-11-26"/> </renderconditions> <enableconditions/> </field> </fields> </section> </sections> </column> </columns> </basicfieldeditor> </components> <resources> <labels/> <javascript/> <css/> </resources> <styles> <styleitem type="background" bgtype="none"/> </styles> </skuidpage>
