This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
xyz.qtc63355
Lets say I have a Person model and Phones that belong to that model. I add more phones using subforms (nested).
And now when I add a Phone, a phone object is saved in my database. If I close the Person model form without saving, the phone shouldn't be saved. How can I prevent this?
mjauvin
The only way I see is if you attached an ajax handler to your Create Form's "Cancel" button and within that ajax handler, you would purge records for the relation that have a NULL key for the parent model.
1-3 of 3