How to make a field disabled only on edit form, but only of a certian condition is true #14388
Unanswered
StaffCollab
asked this question in
Help
Replies: 1 comment 2 replies
-
Inject https://filamentphp.com/docs/3.x/forms/advanced/#injecting-the-current-form-operation ->disabled(function(string $operation) :bool {
if($operation === 'edit') {
//...
}
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Panel builder
Package Version
v3.2
How can we help you?
I know I can do this
And also this
But I want to disable the field only on edit and only if the records book is not current...
How can I achieve the disabled only on edit but together with a condition
Beta Was this translation helpful? Give feedback.
All reactions