The Now Platform® Washington DC release is live. Watch now!
‎01-19-2018 12:45 PM
Hi,
A field Planned Start date which of datetime field type, Revert Change button are on the form. My requirement is to hide Revert Change button once Planned Start date and time is passed.
I tried this condition
current.start_date <= gs.nowDateTime()
but it is not working.
Any suggestions.
Thanks in advance,
Upender
Solved! Go to Solution.
‎02-07-2018 09:03 AM
To hide UI Action when planned start date and time passed.
current.start_date.getDisplayValue()>=gs.nowDateTime()
‎01-19-2018 01:03 PM
Try current.start_date >= gs.nowDateTime()
While the Start date is greater (or later than) or equal to today, show.
You could also do !(current.start_date <= gs.nowDateTime())
‎01-19-2018 01:16 PM
Hi Andrew,
Thanks for reply.
This condition
current.start_date <= gs.nowDateTime()
is not comparing start date and time with current date and time.
It is just checking with current date and time basing on the condition < or > hiding/showing the button.
Regards,
Upender
‎01-19-2018 01:28 PM
I'm not sure if I understand.
You have a UI action you wish to hide when the current date has passed the Planned start date, correct?
What is the condition you currently have for the UI action?
‎01-19-2018 01:37 PM
Andrew,
Hide UI Action when the current date and time has passed the Planned Start date and time.
Here are other conditions
(current.state == -4 || current.state == -2) && (current.type == 'emergency' || current.type == 'normal' || current.type == 'standard')
Regards,
Upender