93 views

Symptoms


Form is in a broken state (example - right click menu options, related lists, reference fields etc are unavailable) as a result of "Uncaught TypeError: Cannot read property 'style' of undefined" browser console error 

Release


Any release

Cause


UI Policy script contains code referencing objects that do not exist

Resolution


Customer may have a customized UI Policy which contains code similar to below in the Scripts section of the UI Policy:

var sections = g_form.getSections(); 
sections[3].style.display = 'block';

In case the form does not have a Section[3] the "Uncaught TypeError: Cannot read property 'style' of undefined" browser console error will get thrown and cause the issue. 

Removing the offensive code or de-activating the UI Policy will resolve the issue.

 

Article Information

Last Updated:2018-08-08 10:58:46
Published:2018-07-09