Opening a form modal from a widget

So im just gonna ask in here again,

I have a widget on my dashboard:
<div class="col-md-6">
                       <p>Get started</p>
                            <x-filament::button
                                icon="heroicon-m-arrow-right"
                                icon-position="after"
                                href="{{ url(route(...)) }}"
                                tag="a"
                            >
                                Add to database.
                            </x-filament::button>
                        </div>



and i have a form in a resource with a wizard:
public static function form(Form $form): Form
    {
        return $form
            ->columns(1)
            ->schema([...])



now i want that button in the widget to open the form modal when it is pressed, but i have no clue how to do this
can anyone help?
Was this page helpful?