Multi record form
Hello, I need to display in edit form multiple records one single TextInput. What I'm trying to make is Translations page List/Edit/Delete resource. Each translation have [id, key, language_id, value, tenant_id]. Visually it MUST look like I open edit form for a KEY and there is displayed ALL records with same KEY. All records must be grouped by tenants (i manage multiple sites in single CMS). Inside record each TextInput represents one record. I have reached this with mutateFormDataBeforeFill (in comments) and with two repeaters. But problem: Repeater is to "fat" for vertical scroll. I need it to use only TextInput. In other resource i was used custom form generation with methods and foreach's, but here I can't access mutateFormDataBeforeFill generated data inside form() method. As I understand mutateFormDataBeforeFill return isn't parsed to $form directly. Is there a way to make it thicker?
0 Replies