How to change input form when select row in relation manager?

I want to get amount column and fill into form. Please help me!
8 Replies
LeandroFerreira
LeandroFerreira17mo ago
not sure if you can access $livewire->ownerRecord on bulk actions.. what code did you try?
vitti🦸🌘
vitti🦸🌘OP17mo ago
I just edit on Edit{ResourceName}.php bro and I was stucked 😄
Patrick Boivin
Patrick Boivin17mo ago
Yeah, this is a bit deep... I think you'll need to: - add a bulk action in the relation manager - in the bulk action, get the data you need from the selected records - emit the data with a Livewire event - receive the data in the page and write it to $this->data['my_field']
vitti🦸🌘
vitti🦸🌘OP17mo ago
@Leandro Ferreira @pboivin do you know how to listen checkbox is selected from Table $table?
LeandroFerreira
LeandroFerreira17mo ago
sorry, I didn't get the idea.. what does it mean?
vitti🦸🌘
vitti🦸🌘OP17mo ago
forget it bro, I found. do you know how to prevent/allow check in table rows?
vitti🦸🌘
vitti🦸🌘OP17mo ago
many thanks
Want results from more Discord servers?
Add your server