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 ?

Community Page
Last updated: