Form not taking input when using disabled() on a field
when I remove disabled, the record is being created, if I use disabled, get an error that the field is missing.
Solution:Jump to solution
Disabled() removes the field from the form state. So, if you want to show it as a form input then you’ll need to make it either readonly or use dehydrated() like you have done. Or if the appearance is less vital then you can use a Placeholder field instead.
3 Replies
I don't know why, but using dehydrated() fixed it. Would really appreciate it if someone could.
Solution
Disabled() removes the field from the form state. So, if you want to show it as a form input then you’ll need to make it either readonly or use dehydrated() like you have done. Or if the appearance is less vital then you can use a Placeholder field instead.
Alright got it! Thanks a lot buddy.