It includes a section allowing a user to add multiple highlights. This is just a text field that duplicates each time a user clicks 'add another highlight'.
My question is - how do I show the old data for these fields, along with any features a user has already added.
This mostly works - but as I also need to show old data (in case there are any validation errors) - the old data is just duplicating the existing features.
Form - show old array data and existing model data
Hey,
I have a form I'm using for editing a listing.
It includes a section allowing a user to add multiple highlights. This is just a text field that duplicates each time a user clicks 'add another highlight'.
My question is - how do I show the old data for these fields, along with any features a user has already added.
so far I have this:
This mostly works - but as I also need to show old data (in case there are any validation errors) - the old data is just duplicating the existing features.
can anyone point me in the right direction?
Thanks! :-)