Forum Discussion

JTB76's avatar
JTB76
Copper Contributor
Jan 27, 2025

Adding a statement to a list

Hi  - Relatively new here.

Trying to build out a BCP and BIA template using Sharepoint online templates and have come across a question for the community.

 

I am comfortable in adding new columns / fields etc., but what I need to do in some instances is to just add in a statement that will be visible on all future forms / templates that are created.  No options to choose etc., just a statement Eg In the event of an emergency call 07967 234567

 

Thanks in advance for any help

James

  • Rob_Elliott's avatar
    Rob_Elliott
    Bronze Contributor

    For the list itself you could add additional text to the title without changing the internal name of the column

    Just click on the list title next to the icon and add your additional text. Out of the box there is no other way to add in a statement at the top of the list.

     

    For the list form you can some text like in my form below:

    To do this click the Add new item button, then in the top right click the pen & paper dropdown and select Configure layout:

    In the format pane that appears, make sure the header section is selected. Initially there will be nothing in the formatting code box.

     

    I used the following JSON and you'll need to change the column names to yours and make any other changes or additions to to suit your requirements:

    {
        "elmType": "div",
        "attributes": {
            "class": "ms-bgColor-themePrimary ms-fontColor-white"
        },
        "children": [
            {
                "elmType": "div",
                "style": {
                    "margin": "10px",
                    "width": "100%",
                    "border": "none",
                    "padding": "10px",
                    "display": "=if([$Title] == '' , 'none' , 'flex')",
                    "flex-direction": "column"
                },
                "children": [
                    {
                        "elmType": "div",
                        "txtContent": "[$Title]",
                        "style": {
                            "text-align": "left"
                        },
                        "attributes": {
                            "class": "ms-fontSize-28 ms-fontWeight-bold"
                        }
                    },
                    {
                        "elmType": "div",
                        "txtContent": "For assistance please call 555-7886",
                        "style": {
                            "text-align": "left",
                            "display": "=if([$field_10] == '' , 'none' , '')"
                        },
                        "attributes": {
                            "class": "ms-fontSize-16"
                        }
                    }
                ]
            }
        ]
    }

     

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User.
    Principal Consultant, SharePoint and Power Platform WSP Global (and classic 1967 Morris Traveller driver)

    • JTB76's avatar
      JTB76
      Copper Contributor

      Hi Rob - Not sure if my last response came through or not.  I may have confused things.

       

      I have a list in SP already as per below.  The item I have circled in red is one that I need to make into a permanent statement so that each time someone opens up a new template that template is already there.  Dont need any options or drop downs etc.  Is that possible in SP?

       

      Thanks again

      James

       

       

       

      • Rob_Elliott's avatar
        Rob_Elliott
        Bronze Contributor

        Anyone who has edit permissions on the list could change that, you can't stop that happening. If you want it as a permanent statement do it the way I demonstrated.

        Rob
        Los Gallardos
        Microsoft Power Automate Community Super User.
        Principal Consultant, SharePoint and Power Platform WSP Global (and classic 1967 Morris Traveller driver)

    • JTB76's avatar
      JTB76
      Copper Contributor

      Hi Rob - Thank you so much for your response.  I think I may have confused matters.

      I have already created a partial template (as below), with various fields/columns.  The one I have highlighted in red below is the one that I want as a permanent statement (along with the actual telephone numbers).  So that everytime someone opens up a template, the statement will be there.  Is that something that can be easily done?

       

      Thanks again

      James

       

       

       

Resources