how to mutate data in record in relation in form

I have a userResource for User table which has a metadata table with its foreign-key.
I have added form fields of metadata with Users fields in one form like this:
return $form
            ->schema([
//user table field...
...
       Fieldset::make('Metadata')
         ->relationship('metadata')
         ->schema([
                    Forms\Components\TextInput::make('experience')
                    ->required()
                    ->maxLength(255),
                 ]),

I want to mutate "experience" field of metadata before filling this form.
I tried mutateRecordDataUsing, but it is not working, even dd($data) is not triggering.
->actions([
                Tables\Actions\EditAction::make()->label('Edit')
                ->mutateRecordDataUsing(function (array $data): array {
                    dd($data);
      }


How do I do this?
Was this page helpful?