All checkboxes in the list is getting checked for maybe wrong value passing in ng-model
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 02:38 AM
I have a requirement to create a custom widget for showing all case records and each case will be attached to a checkbox. So, whenever the checkbox is checked, the case item need to be pushed to an array.
Now, as for populating the case records I used ng-repeat, so even if i am checking on checkbox it is automatically checking all the items in the list. For the below portal snapshot, i just clicked on 1 case and system checked rest 2 automatically. which should not happen.
Assumption :This might be causing for the data passed in ng-model=c.data.item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 02:41 AM
Images are not showing up. Give me the html part of the widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 02:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 04:39 AM
skip the ng-model al together then try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 09:33 AM
I tried removing only ng-model="c.data.item" but the list items gets disappear. Attached the portal snapshot after changing.
If i remove ' ng-model="c.data.item" ng-change="c.toggle({{item}}' completely, then the items are showing properly but i need to call the function for add the item values in the array. Not sure how to achieve this.
Regards,
Prity