'State path' in form injected within repeater reverts to parent path.
I'm attempting to inject the form from another resource within a repeater.
When I build a form within the repeater schema method itself, the state-path correctly aims at the fields defined within the repeater.
However, if I sneakily try to inject a form from another resource
The state path within the injected form reverts to the parent state path where the Repeater was created. e.g. within the AddressResource form I access
How might I approach this differently but still leverage the form in the other resource? Thanks! π€ βοΈ
1 Reply
Actually, I may have solved my own problem.
* Moved all the fields into their own method. Called that static method from both locations.
and
The only 'gotcha' I found is that unless the relationship model is a 'BelongsToMany' - the form does not save changes. Added the extra pivots and off we go.