Bubble: Protection Score not updating in UI even though checkboxes save to database
Post Content
Hi everyone,
I’m building a Bubble MVP and I’m stuck on a UI data-binding issue.
I have:
* A SafetySettings data type
* It stores boolean fields like:
• safe_search
• youtube_safe_mode
• block_adult
• block_violence
• block_gambling
• learning_unlimited
Each child has one SafetySettings record.
What works
The checkboxes are auto-bound to the database fields, so when I toggle them they save correctly.
What I’m trying to do
Display a Protection Strength score (0–6) based on how many checkboxes are enabled.
I tried calculating it in a text element using:
safe_search:formatted as number
• youtube_safe_mode:formatted as number
• block_adult:formatted as number
• block_violence:formatted as number
• block_gambling:formatted as number
• learning_unlimited:formatted as number
The problem
The UI score does not update correctly, even though the database values change.
Setup
Group Settings
Type: SafetySettings
Data source:
Search for Childs:first item’s safety_settings
Checkboxes use auto-binding to the parent group’s thing.
Question
Is this the correct way to calculate a UI score from boolean fields?
Or should this be handled with a workflow instead?
I’ll attach screenshots of:
* Group data source
* Checkbox auto-binding
* Score expression
* Safety Level conditions
Thanks in advance!
1
5 comments
Anthony Anyaehie
1
Bubble: Protection Score not updating in UI even though checkboxes save to database
No-Code Society
skool.com/nocodesociety
Only for No-code builders.
Get paid to build apps.
Build Ideas, Attract users, Land clients.
Leaderboard (30-day)
Powered by