default() is not working in the Group::make()
return [
'form' => $this->makeForm()
->schema([
Group::make()
->schema([
Section::make('Patient Billing Info')
->schema([
Grid::make(2)
->schema([
TextInput::make('first_name')
->default(function () {
return self::getPatientData('first_name');
})
->disabled(),
TextInput::make('last_name')
->default(function () {
return self::getPatientData('last_name');
})
->disabled()
]),
TextInput::make('email')
->default(function () {
return self::getPatientData('email');
})
->disabled(),
]),
Group::make()
->schema([
Section::make('Product')
->schema([
Placeholder::make('')
->content(function(){
return new HtmlString('<h1>Testing</h1>') ;
]) ])->columns(2) ]; }. In other pages the default() is working. but in this form code it is not working
]) ])->columns(2) ]; }. In other pages the default() is working. but in this form code it is not working
0 Replies