Added logic for not ok slectremark text box gets visble in production characteristic page #922
@@ -190,7 +190,11 @@ class ProductionCharacteristicResource extends Resource
|
|||||||
->label('Remark')
|
->label('Remark')
|
||||||
->reactive()
|
->reactive()
|
||||||
->required(fn ($get) => $get('status') == 'ConditionallyAccepted')
|
->required(fn ($get) => $get('status') == 'ConditionallyAccepted')
|
||||||
->visible(fn ($get) => $get('status') == 'ConditionallyAccepted'),
|
// ->visible(fn ($get) => $get('status') == 'ConditionallyAccepted'),
|
||||||
|
->visible(fn ($get) => in_array($get('status'), [
|
||||||
|
'NotOk',
|
||||||
|
'ConditionallyAccepted',
|
||||||
|
])),
|
||||||
Forms\Components\Hidden::make('created_by')
|
Forms\Components\Hidden::make('created_by')
|
||||||
->label('Created By'),
|
->label('Created By'),
|
||||||
Forms\Components\Hidden::make('updated_by')
|
Forms\Components\Hidden::make('updated_by')
|
||||||
|
|||||||
Reference in New Issue
Block a user