Work like JavaScript

Hello Everyone,

If anyone know about how can we work like if we click on add button then text-box add 1 then we click add button then they start process and add one more column. snap is attached.

I have been done, but loop is not working and its not adding more than one. further i have written that whenever i will check the done it needs to show some lists, but its not doing and getting reset.