Passing the record in the helperText method
is it possible to pass the $record in the helperText() function? tried doing it in the 'regular' way but it seems like $record is always null and im not sure why it behaves like this.
5 Replies
i managed to solve it with some workaround using the
Get $get
approach, but still, i wonder why some methods are able to get the $record and some not.Could you share the code?
Basically, it works but if i could get the
$record
in the closure - i'd have much less code as i could directly check for $record
's relationship$record
is available in the Edit/View pageyeah, i made some confusion there thinking that the $record in this case is the record chosen from the Select component (
content_type_variation_id
). My bad. Thanks for clarifying it