Solved
Add a Constant Sum Row to a Side by Side Question
I am looking to add a row that will calculate the running total and have a mandatory value for each column in a side by side table. Ideally, I would like each column to be able to have a different mandatory sum. Does anyone have code that could help with this? Thanks in advance.
Best answer by Michael_Campbell_RedPepper
Yeah! What you do is the following:
How familiar are you with Javascript? If you're familiar, I can tell you in English - if not, let me know and I can code it out for you!
But select the field's ID, and put a JQuery `.change()` listener on the fields you want to total. When any of the fields changes, create and call a function that sums the values, and then use JQuery's `.val()` to set the value to the validation total.
A tip on ways to make it more fluid of a UX is to put a `setTimeout()` on the assigning of the sum so that the user has time to correct and then see the change reflected in the sum. I typically set mine to 300 Milliseconds.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

