DYNAMICS 365 HOW TO FIX SECTION OVERLAPPING OTHER SECTION IN FORM

PROBLEM

Last day, I was working with D365 V9 on-premise and I have encountered a weird issue where a section was overlapping on another section side by side. It was very strange since all the fields in this section are having the same behavior.

The special thing about this section is, that it contains many html web resources and other fields that are being hidden using JavaScript, and the issue occurs in the edit form. When the web resources are displayed on the create form, the issue is not there and everything seems normal.

REASON

After some digging in the html to see what might be the issue, I noticed that the section (table in the generated html) with the erroneous behavior has a style table-layout : auto, if I set it to fixed (in the developer tool - F12), the section is normally displayed and the overlapping is gone even when I resize the window.

However, this solution is not supported since we will access the DOM element of the form to do the change on the section style using JavaScript. Therefore, another supported solution must be done in order to fix this issue.

SOLUTION

I tried to change some properties of the web resources hoping that it might help solving this issue, but in vain.
I changed the components in the section to an IFrames and setting the URL to the needed web resources, but the same behavior has occurred when hiding the IFrame.

Finally, I decided to put the web resources in a separate section without any other field that should be displayed on the edit form and after publishing the changes and opening the edit form, the behavior is as expected and the issue is solved.
I opened the create form which was initially not having any issue and the web resources are properly and nicely displayed together.


Hope This Helps!

Comments

Popular posts from this blog

DYNAMICS 365 FILTER LOOKUP FIELD BASED ON N:N RELATIONSHIP

DYNAMICS 365 LEVEL UP BROWSER EXTENSION - PART 1 - FORMS

DYNAMICS 365 REFERENCE PANEL