Sujal Tamrakar
Uploading new image to a prefilled spatie media file upload not working in custom page with forms
I have a custom page with forms. I have multiple file inputs. The file inputs successfully shows the uploaded images. But when I try to upload another image to the same input, the input loses the previous image and the input empties itself. The submit button gets stuck in the uploading image state.
3 replies
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>
5 replies
Open relation manager create modal from table action
I have two models A and B.
A hasMany Bs so I have used relation manager for Bs.
I want to create an action in A's list table to open the modal like the create action does in relation manager to create Bs right from A's list.
Is this possible? Thank you for any insights.
4 replies