How do I create Dynamic Form Fields?

I want achieve a feature shown in the link in the below.

I have developed using some array features, but its not a valid working feature.
There are issues like, value resetting.
Input validation etc.

How can I create this design ?

Use the form repeat component for this. You can find how to add it on your page here: