Set the HelperText attribute dynamically
Is it possible to dynamically change the HelperText of another field when changing the selected option of a Radiobutton?
Not sure if I need to do this from the Radiobutton, or fetch the value from the field I want to adjust?
6 Replies
Instead of
$set()
you can use ->helperText(fn ($get) => ...)
Thanks. Would it also fire when I change the Radio option?
Sure as long as the field is reactive
OK, to be sure: I use this
$get
from my second field, to get the value of the radio button.yes
and the radio should be reactive
OK! I'll try that. Thanks guys.
Great, that works. ππΌ