Trying to getting data from Relationship
Hi, trying to use ->mutateFormDataUsing in headerActions of a relation that I have from another table, I see that I can only obtain with the variable $data, the elements of the form but not of the related element. Is there any way to access the "id" of the element from which I am creating the
Thanks for any help!!
2 Replies
Relationships have their own saving logic so they won't appear when using
->mutateFormDataUsing()
.
Is there any way to access the "id" of the element from which I am creating the relationship?Not inside
->mutateFormDataUsing()
since it might not be created yet (CreatePage). I think there are hooks after that though.Thanks Dennis for your answer!! In my RM I need to know the ID of the parent element (where i'm creating the RM object). I will try to see the hooks!!