Get unique ID custom field from relation manager

In the modal from relation manager, I would like to get id on each field. The problem: I have only the last ID, double.
<div x-data="my_component">
@include('filament-forms::components.rich-editor')
</div>

@assets
<script src="https://cdnjs.cloudflare.com/ajax/libs/tributejs/3.3.2/tribute.min.js"></script>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tributejs/3.3.2/tribute.min.css" />
@endassets

@script
<script>
Alpine.data("my_component", () => {
return {

init() {
// All of your logic in here, sans the window.addEventListener wrapper
const id = '{{ $getId() }}';

console.log(id);
}
}
});
</script>
@endscript
<div x-data="my_component">
@include('filament-forms::components.rich-editor')
</div>

@assets
<script src="https://cdnjs.cloudflare.com/ajax/libs/tributejs/3.3.2/tribute.min.js"></script>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tributejs/3.3.2/tribute.min.css" />
@endassets

@script
<script>
Alpine.data("my_component", () => {
return {

init() {
// All of your logic in here, sans the window.addEventListener wrapper
const id = '{{ $getId() }}';

console.log(id);
}
}
});
</script>
@endscript
I get the correct ID (mountedTableActionsData.0.content, mountedTableActionsData.0.content2) on resource page, but not on the modal.
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server