1

We have provision to create Sections in Form body by putting in JSON code.

I also need to change background-color CSS property of the section.

enter image description here

{
    "sections": [
        {
            "displayname": " ",
            "fields": [
                "Reporting Period"
            ]
        },
        {
            "displayname": "Schedule Management",
            "fields": [
                "EV",
                "PV"
            ]
        },
        {
            "displayname": "Cost Management",
            "fields": [
                "AC",
                "CV"
            ]
        },
        {
            "displayname": "Quality Management",
            "fields": [
                "Total NCRs raised",
                "No. of NCRs Open"
            ]
        },
        {
            "displayname": "Procurement Management",
            "fields": [
                "Total Biomed Works"
            ]
        },
        {
            "displayname": "Resource Management",
            "fields": [
                "Available Steel Rebar",
                "Required Steel Rebar",
                "Available Cement",
                "Required Cement",

            ]
        },
        {
            "displayname": "Issues & Risk Management",
            "fields": [
                "Total Issues Reported",
                "Open Issues",
                "%OI"
            ]
        },
        {
            "displayname": "Health, Safety and Environemnt (HSE) Management",
            "fields": [
                "WTD HSE Score",
                "AR"
            ]
        },
        {
            "displayname": "General Process Audit",
            "fields": []
        }
    ]
}

Please how is it possible?

1 Answer 1

2

This is not supported using JSON Formatting yet.

Unlike the header and the footer, body configuration only allows defining one or more sections and adding one or more columns into each of those sections.

Source: Configure custom body with one or more sections

2
  • What should we tell management? That we are working on it, or Microsoft is working on it... or we are simply incapable of working on SP & should be fired.. What's the best approach to handle such situation?
    – akg1421
    Jun 9, 2021 at 5:57
  • 1
    You can say that this is currently not supported by Microsoft (using JSON: easy/fast way). Alternatively, you can customize the form using Power Apps to design list form (which might take some time). IMO, customizing the form using Power Apps just for adding background color on form is not good choice - But again it depends on your requirements & it's your decision. Jun 9, 2021 at 6:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.