# Un-favourite a record from the Favourite list

**URL:** <https://forum.adalo.com/t/un-favourite-a-record-from-the-favourite-list/28442>\
**Category:** Get Help\
**Created:** [June 19, 2022, 4:21am UTC](https://forum.adalo.com/t/un-favourite-a-record-from-the-favourite-list/28442 "2022-06-19T04:21:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manoux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/manoux/32/27877_2.png) [@Manoux](https://forum.adalo.com/u/Manoux)\
**Post date:** [June 19, 2022, 4:21am UTC](https://forum.adalo.com/t/un-favourite-a-record-from-the-favourite-list/28442/1 "2022-06-19T04:21:17Z")

</div>

Hi

I have created a Favourites screen with a linked list/collection which works fine.  
I have added a toggle component (favourite) so users could un-favourite a record, to narrow the list down.

 ![Favourite toggle](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/d/0/d0c39f3645c4ee15f355c3c9c05fc5b9e085fc1a.png)  
\*the selection under ‘What does this toggle’ is empty.

However, when the records get added to the Favourite list, by default the toggle (heart icon) is off.

**1. How can I make the heart toggle to be ON by default?**

**2. How can I remove the record from the list when a user de-select the toggle?**

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [June 19, 2022, 4:27am UTC](https://forum.adalo.com/t/un-favourite-a-record-from-the-favourite-list/28442/2 "2022-06-19T04:27:18Z")

</div>

Hi @Manoux,

You have a Many to Many relationship with that collection and the Users collection right?

This Docs should help here! :

> **[How to create a](https://help.adalo.com/how-to/how-to-create-a-favorite-button)**

And this video in this topic will help here too! : [Some Tips and Tricks by this Semi Noob! 😅](https://forum.adalo.com/t/some-tips-and-tricks-by-this-semi-noob/25886) ( Tip 24 )

Thank you

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [June 19, 2022, 5:28am UTC](https://forum.adalo.com/t/un-favourite-a-record-from-the-favourite-list/28442/3 "2022-06-19T05:28:14Z")

</div>

Hi @Manoux ,

Adding what @Dilon has replied.

1. You can choose to make unfavorite list instead of favorite list, so by default all users have favorite this list, this is one way of doing this, if you choose this way, you can look up komun template here,  
[Free Template - Komun for Community Support - In Progress](https://forum.adalo.com/t/free-template-komun-for-community-support-in-progress/18793)

The Users and Projects collections have many-to-many relationship, it is the 3rd choice when adding relationship.

Here is projects collection linked to users and called unsubscribers, so at the beginning there will be no unsubscribers, meaning all users are subscribed to this.

 ![Screen Shot 2022-06-19 at 12.16.31 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/9/9/991e02a870e50b6312bf6d1fd94385a9e55da7b1.png)

Here is from users collection.

 ![Screen Shot 2022-06-19 at 12.17.21 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/a/e/aee46e8a105e8cd671364120e07ebbcefc12bf1e.png)

When showing project unsubscribers,

 ![Screen Shot 2022-06-19 at 12.18.02 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/5/9/592ad2d5df39139abf35f67fe2c695cf90310856.png)

So the perspective is reverse, in your case, if you want users favorite the list by default, there is no need to update record, because by default all users are subscriber, and by the same logic if they want to unfavorite the list, they need to do something which is updating project record with add logged in user. (creating many-to-many relationship is by updating action and add or remove in the related field).

Let me know if I need to clarify further.

---

<div class="post-metadata">

**Author:** ![Manoux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/manoux/32/27877_2.png) [@Manoux](https://forum.adalo.com/u/Manoux)\
**Post date:** [June 19, 2022, 5:52am UTC](https://forum.adalo.com/t/un-favourite-a-record-from-the-favourite-list/28442/4 "2022-06-19T05:52:30Z")

</div>

Hi @Yongki and @Dilon

Thanks a lot for your replies. I have watched the video, but I think my setup is a bit different so I am not sure if this is going to work. Maybe I should have mentioned this at the beginning.

The way that records are getting created in my Favourite collection is via the Favourite toggle on my Cat and Dog details screens via the ‘Create’ action. So have no ‘all’ list only the Favourites list/collection  
And this Favourite collection I added into my User collection (M2M) and into my Cats and Dogs collections (also M2M)

 ![mysetup](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/4/f43948cb2dd7569b6e9c6c6331a725255e1512f0.png)

Is it even possible to achieve what I want with this setup? Or do I have to rebuild this?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [June 19, 2022, 6:47am UTC](https://forum.adalo.com/t/un-favourite-a-record-from-the-favourite-list/28442/5 "2022-06-19T06:47:18Z")

</div>

When you use toggle in many-to-many, there is no need to create new record in another collection (favourites)

The toggle component will do and update action and add / remove by itself.

So in the list for your favourites, select filter that is many-to-many, be sure you have that relationship.

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [June 19, 2022, 6:51am UTC](https://forum.adalo.com/t/un-favourite-a-record-from-the-favourite-list/28442/6 "2022-06-19T06:51:53Z")

</div>

Oh you are using a joint table! Then you need a icon with a list to delete that record in the collection. But in here you don’t need list with icon and you can have a icon in the Favorites list and add a Delete current favorite action there! But the easiest way is to use a Many to Many relationship! ( then the toggle is doing this automatically for you like Yongki mentioned! )

Made a video : [Favorite Pets.mp4 - Google Drive](https://drive.google.com/file/d/1EJlnlaDekU_xAZb30MwZFQt6yvnbXny7/view?usp=sharing)

You can check the app too : [Favorite Pets](https://previewer.adalo.com/10babfad-54f4-4dba-b5b6-16b3848f9cc8)

---

<div class="post-metadata">

**Author:** ![Manoux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/manoux/32/27877_2.png) [@Manoux](https://forum.adalo.com/u/Manoux)\
**Post date:** [June 20, 2022, 10:38am UTC](https://forum.adalo.com/t/un-favourite-a-record-from-the-favourite-list/28442/7 "2022-06-20T10:38:54Z")

</div>

Thanks so much for your help. I will use your video as guidance and hopefully manage to make it work.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [June 30, 2022, 10:39am UTC](https://forum.adalo.com/t/un-favourite-a-record-from-the-favourite-list/28442/8 "2022-06-30T10:39:13Z")

</div>

Closed on June 30, 2022, 10:39am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
