I have a form where fields are dynamically generated. The number of fields that are generated depend on how many products are in a specific category. There are 6 fields generated per product.
The issue I am having is that every time the form loads, it stores all previously generated fields and so grows astronomically.
Once submitted it sends out notifications, but does not need to otherwise store entries. So the dynamically generated fields can be deleted after each submission.
Is there a function for deleting a field and at what point should it be triggered?