© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Xavi

Get value from another Grid relationship

How can i get link_in_published value that its on another grid (relationship)?

this is my code

Grid::make()
->columns(2)
->schema([
    Grid::make()
        ->columns(1)
        ->relationship('options')
        ->schema([
            Checkbox::make('link_in_published')
                ->label(__('Aceptan enlace en artículo publicado'))
                ->live(),
        ]),
    Grid::make()
        ->columns(1)
        ->relationship('prices')
        ->schema([
            TextInput::make('cost_price_link_in_published')
                ->label(__('Precio de enlace en artículo publicado'))
                ->reactive()
                ->visible(fn(Get $get) => $get('link_in_published'))
                ->required(fn(Get $get): bool => $get('link_in_published')),
        ]),
]),
Grid::make()
->columns(2)
->schema([
    Grid::make()
        ->columns(1)
        ->relationship('options')
        ->schema([
            Checkbox::make('link_in_published')
                ->label(__('Aceptan enlace en artículo publicado'))
                ->live(),
        ]),
    Grid::make()
        ->columns(1)
        ->relationship('prices')
        ->schema([
            TextInput::make('cost_price_link_in_published')
                ->label(__('Precio de enlace en artículo publicado'))
                ->reactive()
                ->visible(fn(Get $get) => $get('link_in_published'))
                ->required(fn(Get $get): bool => $get('link_in_published')),
        ]),
]),


Thanks!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Get another field from selected relationship record
FilamentFFilament / ❓┊help
2y ago
relationship from another database
FilamentFFilament / ❓┊help
3y ago
Get Relationship Value in Table Action from Form
FilamentFFilament / ❓┊help
3y ago
how to Get $get value from another text input
FilamentFFilament / ❓┊help
3y ago