Not sure if I am missing something here but I’m trying to get a text colour changes on conditions
<p class="mb-0" dmx-text="'Licence '+customer_selected.data.query1.cust_licence_number+' Exp: '+customer_selected.data.query1.cust_lience_exp.formatDate("dd-MM-yy")"
dmx-class:text-success="(var1.datetime.formatDate("dd-MM-yy") <= customer_selected.data.query1.cust_lience_exp.formatDate("dd-MM-yy"))"
dmx-class:text-danger="(var1.datetime.formatDate("dd-MM-yy") >= customer_selected.data.query1.cust_lience_exp.formatDate("dd-MM-yy"))"></p>
Not sure if I am missing something but this is just not working and stays text-success even if the date is less than todays date.
Any advice would be appreciated.
Community Page
Last updated:
Last updated: