How do I set a UI action condition for when a date passes?

Bushra Syed
Tera Contributor

Hi, I want to have a UI action that appears when a hardware asset's warranty has expired. What would the condition for this be?

10 REPLIES 10

Ravi Peddineni
Kilo Sage

In the UI action condition field, Use below condition:

current.<date-field's-back-end-name> < gs.now()

 

How can I find the hardware warranty expiration back end name?

I'm doing current.warranty_expiration < gs.now(), but the ui action doesn't appear at all anymore

Use this:

current.getValue('warranty_expiration') < gs.now()