Case Ticket Action Widget Conditions

daggupati
Tera Contributor

Hi,

I am looking to update Case Ticket Action widget. In that widget it will show "Accept" or "Reject" button only if state is "Resolved" or "Awaiting Info". We created new field in the Case called "Customer Input" field type is true/false. So we want to display Accept or Reject button only if that check box (Customer Input) is checked. Remaining process is same If they Accept it will go to State Closed if they Reject it will go to Open.

 

I tried to update the if condition in HTML and Client controller but it is not working

find_real_file.png

find_real_file.png

find_real_file.png

Thanks!

10 REPLIES 10

Prateek kumar
Mega Sage

Try "ng-if = c.data.u_customer_input == true"


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Hi Prateek,

 

Tried that one but it is not working. Do i need to update anything else?

find_real_file.png

Thanks

I am assuming the value of u_customer_input is not being fetched from Server side, but is being set using the client side function and updated to the Server side.

Have you tried printing the value of the  c.data.u_customer_input variable on the view somewhere? Like:

 

{{c.data.u_customer_input}}

That will help to see what value does it contain. If it has true or false (not undefined), try the following:

ng-if="c.data.u_customer_input"

Hi manishvinayak,

This is how we defined in the Server script. Please let me know if there is any updates i need to made.

find_real_file.png