SharePoint - Column Formatting

%3CLINGO-SUB%20id%3D%22lingo-sub-1206234%22%20slang%3D%22en-US%22%3ESharePoint%20-%20Column%20Formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1206234%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Team%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20following%20JSON%20will%20help%20us%20to%20increase%20the%20width%20of%20a%20column%20but%26nbsp%3B%3CSPAN%3Eit%20removes%20the%20sharing%20button%20and%20link%20to%20open.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22%24schema%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fcolumn-formatting.schema.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fcolumn-formatting.schema.json%3C%2FA%3E%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22elmType%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22div%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22txtContent%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%40currentField%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22style%22%3C%2FSPAN%3E%3CSPAN%3E%3A%20%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22width%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22100%25%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EPlease%20assist%20me%20to%20fix%20this.%3C%2FDIV%3E%3CDIV%3EThank%20you.%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1206234%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1208552%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20-%20Column%20Formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1208552%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3EYou%20had%20assigned%20the%20content%20as%20%40currentField%2C%20so%20whatever%20the%20values%20will%20be%20displayed%20inside%20the%20div%20with%20100%25%20width.%20I%20don't%20see%20any%20sharing%20button%20or%20any%20customization%20that%20you%20had%20done%20in%20your%20json%20file.%20If%20it%20is%20not%20the%20complete%20json%2C%20can%20you%20please%20post%20the%20complete%20json%20and%20also%20the%20field%20type.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1210586%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20-%20Column%20Formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1210586%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144422%22%20target%3D%22_blank%22%3E%40Sudharsan%20K%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIts%20a%20Name%20field.%20I%20have%20just%20increased%20the%20width%20but%20it%20removes%20the%26nbsp%3B%3CSPAN%3Esharing%20button%20feature.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20have%20not%20done%20any%20customization%20other%20than%20the%20above%20mentioned%20code.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you%20%3A)%3C%2Fimg%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1210590%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20-%20Column%20Formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1210590%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3ECan%20you%20please%20post%20some%20screenshots%20before%20and%20after%20the%20customization.%20I%20assume%20the%20field%20type%20is%20Person%20or%20Group%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1210718%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20-%20Column%20Formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1210718%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144422%22%20target%3D%22_blank%22%3E%40Sudharsan%20K%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1210828%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20-%20Column%20Formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1210828%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F573158%22%20target%3D%22_blank%22%3E%40MadhusudanShettyMS%3C%2FA%3E%26nbsp%3Bformatting%20the%20Title%20column%20does%20have%20this%20effect%20and%20as%20far%20as%20I%20am%20aware%20there%20is%20currently%20no%20way%20to%20prevent%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1211149%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20-%20Column%20Formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1211149%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174092%22%20target%3D%22_blank%22%3E%40Rob%20Elliott%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hi Team

 

The following JSON will help us to increase the width of a column but it removes the sharing button and link to open.

 

{
"elmType""div",
"txtContent""@currentField",
"style": {
"width""100%"
}
}
 
Please assist me to fix this.
Thank you. 
 
6 Replies
Highlighted
Hi,
You had assigned the content as @currentField, so whatever the values will be displayed inside the div with 100% width. I don't see any sharing button or any customization that you had done in your json file. If it is not the complete json, can you please post the complete json and also the field type.
Highlighted

@Sudharsan K 

 

Its a Name field. I have just increased the width but it removes the sharing button feature.

I have not done any customization other than the above mentioned code.

 

Thank you :)

 

Highlighted
Hi,
Can you please post some screenshots before and after the customization. I assume the field type is Person or Group?
Highlighted
Highlighted

@MadhusudanShettyMS formatting the Title column does have this effect and as far as I am aware there is currently no way to prevent it.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

Highlighted

@Rob Elliott 

Thank you.