LozzaJ
How to access row data in relationship manager
Maybe I am not explaining correctly - I have a row which may or may not have a related item (seat number) - I am displaying a link on this table row "Change Seat" with a custom link - which I only want to appear if the seat number exists.
7 replies
Same field entered in varying formats
$schema = [
TextInput::make('code')
->disabled(),
Select::make('type')
->options([
'date' => 'Date',
'string' => 'String',
'integer' => 'Number',
'decimal' => 'Decimal',
'binary' => 'On/Off'
]),
TextInput::make('name')->disabled(),
];
if ($form->model->type==='date') {
$schema2 = [DatePicker::make('value'),];
} else {
$schema2 = [TextInput::make('value'),];
}
$schema = array_merge($schema,$schema2);
return $form->schema($schema);
4 replies