Get the parent id inside child repeater form
I have a nested form using repeater like, main form -> child repeater form -> grandchild repeater form.
Here I need to take the id of main form and insert into grandchild table as main_form_id. I have tried few solutions but not working, This is my form,
5 Replies
I think if you pass $livewire into the function you can call $livewire->ownerRecord or parentRecord ?
I am trying to include livewire here, Is this the way to include, I am newbie for this,
try:
That's great!. Thank you for your valuable support. Here is the working code,
Great stuff!