Toggles and Sum formulas issues

Hello! I’m a brand new Adalo user and I’m building an app for personal use based on gaining points from toggling missions from 3 lists every day, then it resets to 0.

My issue is that I want to sum only the points with the toggle ON but when I set up the yellow action in the toggle options “additional actions only when toggle is ON” it gives back the sum of all the missions points even the not toggled ones.

I’m really going insane. Here are some screenshots.



Do you have a True/False property on your collection that the Toggle is controlling? If not, I think you’ll want that. The toggle sets the value to true, then sum up and filter to only True.

Here I am!
I added the property toggle in my “Missioni” Database and I updated the toggle action settings to act only sometimes when the toggle is True. However, the sum is still 255 (total points of all the missions).

As always, here the screenshot. I suppose I’m still missing something between the formulas.

You have the filter on the action but you need the filter on your formula itself (click the little pencil icon in the red chip):

1 Like

Hello, you are right, this setting was missing!

I updated the database and set the current user total points to 0 to run a test: it works!
Now i have another issue while refreshing the list page (or navigate in other sections of the app): the toggles reset and the value “true” is kept only in the database. There is a way to block the toggles until the user decides to disactivate them?

Here the screenshot

Hello this is an update for everyone that lands here for solving the same issue: I deleted the toggle function and started from scratch creating a custom list that trigger the sum of points when the items are clicked. The procedure is smoother and it is much easier to implement the sum of points in other section of the app with the magic text.

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