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

Samaksh Wani
Giga Sage
Giga Sage

Hello @KierraBrianna 

 

In UI action Action Name field is empty,

 

You need to mention the display name of button in the action name field.

 

Plz mark my solution as accept if you find it helpful.

 

Regards SAMAKSH 

 

 

Hello Samaksh, I am still unable to get it to pop up. Thank you though.

Hello @KierraBrianna 

 

In that case check the backend values of 'Returned for Inspection' and 'Open';

 

Also remove the whole condition once and check whether the button is coming or not, so we will get to know the root cause.

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

Bert_c1
Kilo Patron

Hi,

 

It seems that 'vehicle_status' is a choice field, you need to use the value and not the label.