Skip to content
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

disabledFields #49

Closed

Conversation

KamranBiglari
Copy link

Disable fields

->disableFields(['email', 'name'])

@Abdelhalim-Merabet
Copy link

would you like to explain the use case please ?

@javier-villatoro
Copy link

would you like to explain the use case please ?

I have a use case, showing the user their role or which team they belong to, without being able to change it.

It's something I wanted to do and I couldn't do it.

@joaopaulolndev
Copy link
Owner

Actually, you can solve this by creating CustomComponentes

https://github.com/joaopaulolndev/filament-edit-profile?tab=readme-ov-file#custom-components

and to hide the default fields you can use this method

->shouldShowEditProfileForm(false)

@KamranBiglari @Abdelhalim-Merabet @javier-villatoro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants