I’m having trouble with
Building a warm-up set calculator that automatically generates
warm-up sets based on a user’s working weight. I want it to
calculate the right percentages and reps for each set, I have
a working reference at this warm-up set calculator
but struggling to replicate the logic inside Wix.
Working in
Wix Studio Editor / Velo
What I’m trying to do
Take a single input (working weight in kg or lbs), run it through
percentage-based logic (e.g. 40%, 60%, 80% of working weight),
and display a clean table of warm-up sets with reps for each.
What I’ve tried so far
Basic JavaScript logic works for the calculation itself,
but I’m struggling with:
- Unit switching (kg vs lbs) without breaking the output
- Displaying results in a clean table format inside Wix
- Rounding to nearest 2.5kg/5lb increment
Extra context
Is this better handled entirely in frontend Velo code, or is
there a Wix-native way to build this kind of dynamic output table?