How to hide button for particular time period

Manu Shukla
Tera Contributor

Hiding the button according to the stores closing and opening timing on SNOW and stores timings is dynamic but the timing is in string . Can any suggest me how can I write the script in UI action.

 

1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@Manu Shukla Create a Script Include in which define a function checkStoreTiming:function(). In this function compare the store timing with the current time and return true/false based on the evaluation. In the condition field of your UI Action call the script include method.

 

Screenshot 2023-09-27 at 11.50.55 PM.png