Show/Hide a field based on the value of another field THAT IS NOT IN DATABASE
So I've been reading the manual about the reactivity of forms, specially https://filamentphp.com/docs/3.x/forms/advanced#dynamic-fields-based-on-a-select-option . I understand how it works and I was also able to make it work, but currently, this requires that the select Field is an actual field in the database table. When I set the name to something that isn't in the table column, it throws an error. Is it possible to have the select field (or checkbox field) control the visibility of other fields, while not being actually in the database (just temporarily storing the data in Livewire or something)?
2 Replies
Thank you very much! That seems to do the trick! I apologize, I'm not very familiar with Filament vocabulary and did not try to search for "dehydrated".