- Goal:
I'm creating a form where some of the fields are dynamic. There's a multi-selector where you can add "Sales People" to the form. Right below the selector, i have a listview that takes and displays the selected items.
Each row in that list view has an input field, to enter a percentage. Of course, all percentages must sum to 100%.
I'm trying to add validation to the percentage input fields so that, if they don't sum to 100% the user won't be able to submit the form.
- Steps: I have the multi-selector and the list view. The data is correctly selected and displayed, but I can't find a JS expression that sums the percentages on the validation property of the percentage input.
The problem is that I can find an array with the data but I can't find an array with the views (with the input field inside) to map/reduce over.
-
Details: Self-hosted retool v3.52.1
-
Screenshots: