Customizing repeater layout in custom form layout?

I am trying to create a custom repeater layout in a custom form layout. I don't know if this is possible. Previously, when I had to create a custom form layout, I'd create a form layout, I'd pass inputs in its schema. Then, in the view , I'd get the inputs using $getChildComponents() and place the inputs in a custom layout. Can I achieve when passing repeater in the custom form layout's schema ? The repeater has default x num of items. I want to place each repeater items in a custom layout. For e.g : - I'd create a form layout named TableInputs. - I'd pass a repeater in schema of TableInputs. The repeater's schema will have say three text inputs. - In the view of TableInputs form layout. I want to render a table and each repeater should render as a <tr>. The three text inputs inside the repeater inside individual <td>
Solution:
You would need to create a custom view for the repeater itself. Repeaters can get pretty complicated. If you’re just wanting to put it as a table there’s #awcodes-table-repeater
Jump to solution
2 Replies
Solution
awcodes
awcodes10mo ago
You would need to create a custom view for the repeater itself. Repeaters can get pretty complicated. If you’re just wanting to put it as a table there’s #awcodes-table-repeater
Sujal Tamrakar
Sujal TamrakarOP10mo ago
Thank you! Will try using the package, I think it would work
Want results from more Discord servers?
Add your server