Dynamic value for progress bar

I’ve got a Bootstrap 4 progress bar on the page which I want to show a calculated percentage using two fields in the database. I can’t seem to get it to work, though. What’s the correct syntax?

Some more info… I have two fields - one with a current value, one with a target value. My calculation is (current/target)*100 so I have a percentage.

The value field in Wappler doesn’t have the lightning button so I’m putting the code in myself but it’s not working!

Thanks in anticipation.

Community Page
Last updated: