F
Filamentβ€’2mo ago
Maxi

Enable fields on view page

For a form I'm working on I need to have a few specific fields enabled in the view page (ViewRecord) I do not need to save these fields but I need to allow them to be modified, so charts on the page can be edited via these fields. Is there a way of doing this or is this generally not allowed on a view page?
Solution:
So instead do an edit page instead of a view, then disable the fields on demand πŸ™‚
Jump to solution
4 Replies
toeknee
toekneeβ€’2mo ago
->visible(fn($context) => $context === 'view') ->disabled(false) Try that.
Maxi
MaxiOPβ€’2mo ago
Hey, sorry for the late reply, I didn't see the response. πŸ˜… I already tried ->disabled(false) and sadly it didn't work. Haven't found another way of doing it either :(
Solution
toeknee
toekneeβ€’2mo ago
So instead do an edit page instead of a view, then disable the fields on demand πŸ™‚
Maxi
MaxiOPβ€’2mo ago
Oh yeah xD

Did you find this page helpful?