F
Filamentβ€’16mo ago
Serge

How to automatically fill a field based on a select inout

Hey there, This isn't really a bug or smth, but more a thing I couldn't really find in the documentation, so that's why I'm asking it here πŸ™‚ I don't even know if it exists or is possible. I want to know if it is possible to automatically fill in a field, based on the select a user has made. This is my usecase: A user can create a subscription. In a dropdown they can select a period (monthly, yearly). I either want the date_due date field to be automatically fill with the current date + month (Carbon::now()->addMonth), or to have it in the database automatically. Is something like that possible? Thanks for the help!
4 Replies
Serge
SergeOPβ€’16mo ago
So this is basically what I mean πŸ™‚
xcal_ibur
xcal_iburβ€’16mo ago
make the select reactive and use $set() hope it will work
Serge
SergeOPβ€’16mo ago
Yesss, thank you!
Want results from more Discord servers?
Add your server