Forum Discussion

MadhusudanShettyMS's avatar
MadhusudanShettyMS
Copper Contributor
Mar 03, 2020

SharePoint - Column Formatting

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.

 

{
"$schema""https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType""div",
"txtContent""@currentField",
"style": {
"width""100%"
}
}
 
Please assist me to fix this.
Thank you. 
 

6 Replies

  • RobElliott's avatar
    RobElliott
    Silver Contributor

    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

  • Sudharsan K's avatar
    Sudharsan K
    Iron Contributor
    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.
    • MadhusudanShettyMS's avatar
      MadhusudanShettyMS
      Copper Contributor

      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 🙂

       

      • Sudharsan K's avatar
        Sudharsan K
        Iron Contributor
        Hi,
        Can you please post some screenshots before and after the customization. I assume the field type is Person or Group?

Resources