Hi, Rachel,
not surprising that the workaround fails.
This post is more than 8 years old and the solution for a different version of LimeSurvey
And it is always better to provide a lss export of these relevant questions.
This gives the change to include the solution and send back this lss file and you only need to import it.
Okay, to do this you do not need javascript. This is possible with only some equations.
But first one remark.
Why do you use this long multiple question?
How do you deal with twins?
In my opinion an array with dynamically displayed rows might be better
Or a multiple numerical question?
a. better Look&Feel
b. easier to select the child.
I created a sample survey with these options:
1. Multiple numerical input where the next field only is displayed if the previous is filled with an age
2. An array with dynamical rows
3. Your initial idea (You will see that the equations are much more complicated)
BUT: As I am not able to attach anything here you may have a look at this
mafosurvey.limequery.com/882211?lang=en&newtest=Y
Joffm