Friday, March 2, 2012

InfoPath Forms not working (Rendering) in My Custom Master Page in SharePoint 2010


Recently i have created a master page based on the StarterMaster page giving in the Codeplex/Msdn. But i got a problem that InfoPath forms are not working in the master page i created.

By analyzing the  V4.master page i found that Body tag Java Script is different.


<body onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();">

2 comments:

Albert Henry said...

What is different in this, this is something that I have seen lot of time. I really got to find where the exact problem lies in this mater.

Melick Rajee said...

@Albert Henry,

Normally when we create our custom master pages we no not call that JavaScript method. therefore it wont layout the infopath forms correctly. so if we call that method in the page load InfoPath will work correctly.