Forum Discussion

marwal83's avatar
marwal83
Copper Contributor
May 26, 2023

Remove multi column using json

Hi,

 

I added JSON formatting code to my Sharepoint list form in order to add sections. After doing this, the form got multiple columns (the fields are stacked in multiple columns depending on window width). Before adding JSON, the form had one column only.

 

Is there a way to keep one column ONLY when adding sections?

 

JSON code I'm using:

 

 

{
    "sections": [
        {
            "displayname": "Section 1",
            "fields": [
                "Title"
            ]
        },
        {
            "displayname": "Section 2",
            "fields": [
          	    ........
            ]
        }
    ]
}

 

 

 

Best,

Markus

3 Replies

  • Raygun76's avatar
    Raygun76
    Copper Contributor
    Sorry to hijack your question but I have the exact opposite problem. I WANT to have fields stacked in multiple columns when displaying the item. It is much easier to overlook when having lots of fields, otherwise i end of scrolling forever. So what am i doing wrong? I do have sections that is working fine but it all just displays in one single column.
  • RobElliott's avatar
    RobElliott
    Silver Contributor

    marwal83 No there isn't, it automatically switches to multiple columns when sections are added. Microsoft plan to introduce a single column layout with  sections at some point in the future: https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/list-form-configuration#configure-custom-body-with-one-or-more-sections

     

    Rob
    Los Gallardos
    Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)