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


I get the correct ID (mountedTableActionsData.0.content, mountedTableActionsData.0.content2) on resource page, but not on the modal.
Capture_decran_2024-05-15_a_13.01.27.png
Was this page helpful?