Here's what I have:
1. A total loan amount given to an organization in the parent form.
2. A repeat collecting the information on individual beneficiaries of this lump sum.
Now here's what I need:
A constraint that ensures that the total amount disbursed to each of the beneficiaries equals the actual total loan amount received in the parent form.
Thanks in advance.
Use sum()
You could add a null question to calculate the sum and then apply the constrain on the parent value question:
. = ${question_a}
This checks the user input (. is current input) against the sum (question_a)