Is that possible to use toggle to allow users to favourite items in a list with an External users collection? I have seen examples using internal collections but not with External Users Collection.
Is that possible? If so, could you share an example?
FYI, for this to work, you need to do a create action first followed by updating the action. Ideally, you can just do it in creation step.
If you’re in Xano, Maybe you can add a favorite’s table and have 1 boolean field and another linked field to original record, so when you toggle it, it will add to specific record in the referenced table.
Hi @bhanu , after trying for a while, I am still stuck at this point…
I am now being able to create a an action and add a True label when I click in the toggle. But I am still having difficult on two things:
I still do not know how to prevent it to create the same record twice or more (per example, for post 1, if I click several times in its toggle, I will add a record several times into Xano’s table.
I still do not know how to update the added record to false, if per example I decide to unlike one of the post per examples.
Sorry for disturbing you with this topic, but your help would be very apprecciated.
All the best,
Edu
See attached some pictures of my data tables and the way I am configuring the Toggle in Adalo.
@edumagol sorry for the delayed response, was busy a bit.
Ok, from your post I think you’re trying to update using POST from Adalo to Xano, when you do that it’ll go ahead and create a new record.
Instead you should be doing PUT and pass the record ID in your API call to xano to update the existing record.
And for the boolean to update, is it possible for you to first check the current state for the record and reverse that state when the checkbox is ticked/unticked?
were you able to solve this problem? I have the same obstacle. In “what does this toggle do?” I don’t see any option in third parties, in this case I also use xano.
When selecting the “on” action, for example, update logged in user appears, which is where the toggle is, but no option appears either. En crear usuario si que me aparece, pero me crearĂa un nuevo usuario.