How to add columns based on user input from another column?

I have a field called Number of Children in my form. The user then inputs the number of children they have. What I am looking to do is have other fields added based on what the user input for the Number of Children field. For example, if the user inputs 4 in the Number of Children field, I want a Name, Age, and Gender field to show up for the user to input the information in for all 4 children.

Any help would be awesome! Thank you!

Best Answers