Microsoft List expand field width - what json code to use?

HaoChan 21 Reputation points
2022-12-28T08:31:23.417+00:00

I have an MSlist which I am trying to customize the layout.
I use the following JSON codes to customize the body section.
Under the status section, the texts in the Remark field are displayed in a narrow field. How do I modify my codes to make that particular field wider?

{
"sections": [
{
"displayname": "",
"fields": [
"Country",
"Market Segment"
]
},
{
"displayname": "Status",
"fields": [
"Remarks"
]
},
{
"displayname": "Details",
"fields": [
"Budget"
]
},
{
"displayname": "Others",
"fields": [
"Year"
]
}
]
}

274496-ask.png

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

Answer accepted by question author
  1. AllenXu-MSFT 24,981 Reputation points Moderator
    2022-12-29T02:09:47.487+00:00

    Hi @HaoChan ,

    As per my knowledge, I'm afraid it is not supported in SharePoint form layout configuration. 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. We cannot add "style" code to body.

    You can provide feedback here: https://feedbackportal.microsoft.com/feedback/forum/06735c62-321c-ec11-b6e7-0022481f8472. Microsoft will take your feedback into consideration if it is highly voted.

    ----------

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.