Get value from another Grid relationship
How can i get link_in_published value that its on another grid (relationship)?
this is my code
Thanks!
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!