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 02:40 PM
Try "ng-if = c.data.u_customer_input == true"
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2019 04:16 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2019 04:54 PM
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"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2019 06:01 PM