Home › Forums › Modern DFFS › DFFS speed loading issue – any updates? › Reply To: DFFS speed loading issue – any updates?
July 27, 2023 at 09:47
#36991
I got this excellent tip (thanks Michelle) that can hide the original form and show a message to the user if DFFS hasn’t completed loading before the user hits either the New item button or tries to view or edit an item.
This is done through the standard “List formatting” functionality – see this link for details on how to open the configure layout panel: https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/list-form-configuration
Add this to the header
{ "elmType": "div", "style": { "margin-bottom": "100vh", "padding": "20px 15%" }, "children": [ { "elmType": "div", "attributes": { "class": "ms-fontColor-neutralSecondary ms-fontWeight-bold ms-fontSize-24" }, "style": { "box-sizing": "border-box", "width": "100%", "text-align": "left", "padding": "21px 12px", "overflow": "hidden" }, "children": [ { "elmType": "div", "txtContent": "The Modern DFFS is not ready. Please wait a few seconds after a page load before you click to open the form." }, { "elmType": "div", "style": { "margin-top": "20px" }, "txtContent": "Close this panel and try again." } ] } ] }
Add this to the body
{ "sections": [] }
See attached image.
Alexander