SOLVED

How to make people picker field read only in SPFx?

%3CLINGO-SUB%20id%3D%22lingo-sub-1452710%22%20slang%3D%22en-US%22%3EHow%20to%20make%20people%20picker%20field%20read%20only%20in%20SPFx%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1452710%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20using%20PnP%20people%20picker%20but%20found%20no%20solution%20for%20the%20same.%3CBR%20%2F%3E%3CBR%20%2F%3EGuide%20me%20if%20you%20have%20any%20solutions.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1458024%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20make%20people%20picker%20field%20read%20only%20in%20SPFx%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1458024%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F694742%22%20target%3D%22_blank%22%3E%40nrvrvl%3C%2FA%3E%2C%20there%20is%20a%20property%20named%20'%3CSTRONG%3Edisabled%3C%2FSTRONG%3E'%20for%20the%20control.%20Have%20you%20tried%20using%20that%20property.%20I%20hope%20it%20should%20resolve%20your%20issue.%20Try%20it.%20I%20hope%20you%20are%20using%20the%20below.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fpnp.github.io%2Fsp-dev-fx-controls-react%2Fcontrols%2FPeoplePicker%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fpnp.github.io%2Fsp-dev-fx-controls-react%2Fcontrols%2FPeoplePicker%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20it%20helps%2C%20please%20like%20it%20or%20mark%20it%20as%20a%20solution%20if%20it%20resolves%20your%20clarification%20or%20issue%3CBR%20%2F%3E-Sudharsan%20K...%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I am using PnP people picker but found no solution for the same.

Guide me if you have any solutions.

1 Reply
Highlighted
Best Response confirmed by nrvrvl (New Contributor)
Solution

Hi @nrvrvl, there is a property named 'disabled' for the control. Have you tried using that property. I hope it should resolve your issue. Try it. I hope you are using the below.

https://pnp.github.io/sp-dev-fx-controls-react/controls/PeoplePicker/

 

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...