Disable dependend fields
Hi, i have two text fields:
I'm trying to disable the
field2
when field1
is empty.
How can I access with $get()
to the field1
value?3 Replies
you did it right
maybe you also need to account for a null value
Thanks, that works.
I don't know why with
''
empty string doesn't works, but with null
works well.->disabled(fn(callable $get) => blank($get('field1')))