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
So this is basically what I mean π
make the select reactive and use $set() hope it will work
Solution
Yesss, thank you!