nathanvda / cocoon

Dynamic nested forms using jQuery made easy; works with formtastic, simple_form or default forms
http://github.com/nathanvda/cocoon
MIT License
3.08k stars 385 forks source link

Only show new fields page refresh #583

Closed RailsCod3rFuture closed 4 years ago

RailsCod3rFuture commented 4 years ago

I love the gem, its wonderful -- The issue I am having is how do you ensure only new form inputs after submitting the nested fields. For instance, every time the page loads - I should only see new inputs, not edit forms for the fields? Thank you.

nathanvda commented 4 years ago

Can you explain this in a little more detail? You do want an edit form, but you do not want to show the existing items (so not edit them?). You only want to allow to add new items? Is that correct?

And do you actually want to edit the parent object or not?