FilamentF
Filament2y ago
3 replies
dotdotdot

Empty hidden fields

I have two columns in my table
hours
and
semesters
. both are nullable.

in my form, I have a checkbox, it's value decides whether to show the hours or the semesters input using the
->hidden
method

now I don't want both semesters and hours to be set at the same time, so for example if
horus
is shown I want to make sure
semesters
is null when saving the form and vice-verca
Was this page helpful?