How to set the value of the relationship form based on the parent form?
I'm trying to pre-fill a relationship form based on the parent form.
Tried with the following, but the form field inside the relationship is not populated. (Here slug field inside the schema of relationship)
Solution:Jump to solution
I think this is your solution
https://filamentphp.com/docs/3.x/forms/fields/repeater#using-get-to-access-parent-field-values
If not, please share you form code...
2 Replies
Solution
I think this is your solution
https://filamentphp.com/docs/3.x/forms/fields/repeater#using-get-to-access-parent-field-values
If not, please share you form code
thank you, that solved the issue
I had to enter the relationship name followed by a period and the field name, then it worked.
Assume the
body
is relationship name