-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to disabled/read-only a field in forms. #2226
Comments
is that good ideal to passing the html options through Field options? |
Unfortunately, at the moment there isn't a way to hide/show form fields depending on dynamic conditions. |
@pragatiwagh is this meet your requirment? |
@jubilee2 With #1991 we can restrict what fields to be included in edit/update. What i want to achieve is have a field in edit form too but as read-only. So it user knows what it is but cannot edit it. I think this would be common behavior for many applications and would be really helpful if we could something like this with simple configuration. |
Understand I have this need also |
@pablobm is this good ideal? |
if think this way is good then i can create a mr but for document i am limited to do write too much, |
Perhaps I didn't understand correctly. Do you want this field to be disabled for every user, or only for certain users? If it is for every user, you could do it with a custom field instead of changing an existing one. This custom field would not have a form field in it, or it would have a form field with the However, if you want that different users can see this field differently (enabled or disabled) then that's more problematic, as Administrate doesn't support this at the moment. |
I think this is a duplicate of #1862, so I'm closing it in favour of the former. |
Sometimes we have a behavior where we want to disable or hide a particular field in form.
For instance I don't want to allow user to edit certain fields in the form, with current behavior I have to write a custom field or have a conditional handling to manage such a behavior.
The text was updated successfully, but these errors were encountered: