Passing record to resource create page
Hey! I'am trying the following: I want to pass a record to the create page of a resource. I do this by customize the
create
entry in the getPages()
. In the action where I link to the create page i pass the model. To this point everything works fine. But now I want to resolve the passed model and prefill some of the fields in the create form. Any ideas how I can achieve this?Solution:Jump to solution
You would pass the fields in as query parameters in the route? then use the mount function to $this->form->fill ?
2 Replies
Solution
You would pass the fields in as query parameters in the route? then use the mount function to $this->form->fill ?
Yeah this works, thank you! I passed it as a route parameter but it seems that there is no possibility to resolve this