Beginner form question - Field value is 'null'

Here is my form code:
   public function form(Form $form): Form
    {
        return $form
            ->schema([
                TextInput::make('subject')->maxLength(255)->required(),
                Textarea::make('message')->minLength(10)->maxLength(50000),
            ])
            ->statePath('data');
    }

    public function create(): void
    {
        dd($this->form->getState());
    }


When I input values in both fields and hit Submit, the dd() output is correct for 'subject' but shows 'null' for the 'message' field. Any ideas on why this is happening?
Was this page helpful?