How can I hide a field inside a form or repeater, but still send its data

How can I hide a field inside a form or repeater, but still send its data ( i'm populating it's data from another field ) I've tried with hidden() and visible() but it seems its data is not sent when I submit the form Regards
3 Replies
Miguel García
If I'm not wrong hidden, visible and readonly, send the data, only when the field is set to disabled() the data it not sent. You can use your page lifecycle hooks (e.g beforeValidate() ) to check whether you're receiving it or not: https://filamentphp.com/docs/3.x/panels/resources/creating-records#lifecycle-hooks
toeknee
toeknee3w ago
Hidden::make() if it's not sensitive else as aboce.
oxodesign
oxodesign3w ago
use
->hidden()->dehydratedWhenHidden()
->hidden()->dehydratedWhenHidden()
Want results from more Discord servers?
Add your server