Get value of field within an action
I have a field which uses a hintAction. This action opens a modal window and I want to prefill the field with the value of the component that triggers the action.
I though of using
This is the code:
I also tried to use the
What is the best practice in this case?
I though of using
fillForm but I don't see how to use e.g. a $get within that function. The documenation shows an example with $this->record but that doesn't work.This is the code:
I also tried to use the
default function, which works, but I don't want the default to be the $record value, but the actual value inside the component:What is the best practice in this case?