Case Ticket Action Widget Conditions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2019 02:22 PM
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
Thanks!
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2019 08:57 PM
Hi,
Any Other idea.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2019 09:03 PM
Did you try printing the value on the View?
{{c.data.u_customer_input}}
That would help to see if the variable on the client side has got the updated value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2019 09:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2019 04:48 AM
Is there any changes i need to made? I tried to put {{c.data.u_customer_input}} it is not displaying anything
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2019 05:08 AM
You should debug the code. I'd recommend you to add {{c.data}} to see the exact data returned from the server. You can additionally hold Ctrl key pressed and open context menu of the widget (use right mouse click with holding Ctrl key). Then you can choose "Log to console: $scope.data" and examine the console log (press F12 and choose console). Probably you works not with the table, which has u_customer_input field or you made some typing error? One can find such problem only during debugging. In the same way you can add debugger; statement in the code of client controller, open Developer Tools of Chrome, and reload the page. You will be able debug client code and examine all real values returned from the server.