UI Action

KierraBrianna
Tera Contributor

Hello, how can I fix my UI Action , Im unsure of whats wrong with it. When I go to Test it out , the UI button is not showing . I only want to show the button when the Vehicle Status is Returned for Inspection, and the Ticket Status is Open. When users click this button, Set the Vehicle Status to returned to warehouse.

 

My Condition - 

current.vehicle_status == 'Returned for Inspection' && current.tracker_status == 'Open'

 

My Script -

current.vehicle_status = 'Returned to Warehouse';
action.setRedirectURL(current);
current.update();
5 REPLIES 5

Prince Arora
Tera Sage
Tera Sage

@KierraBrianna 

 

Please ensure that you have used the backend names instead of labels for applying the condition

 

current.vehicle_status == 'Returned for Inspection' && current.tracker_status == 'Open';

 

check what's the backend names of these two states and update accordingly.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.