Looked everywhere, need help with modal dialog for infopath form in Sharepoint 2010

Using the following code:

<a onclick="NewItem2(event, this.href); return false;" href="your">https://mywebsite/_layouts/listform.aspx?PageType=8&amp;ListId={3EDFF639-D37D-49F9-8140-1B46DBC2FC00}&amp;RootFolder=">your link name</a>

It opens into an infopath form on a sharepoint list. The dialog opens, but it is cropped and cannot scroll. I have searched for hours to get an answer and am getting frustrated. Help!

August 21st, 2015 12:11pm

Hi Ky- this sounds like you have a fixed width/height whether you set it or not. I'd check your CSS. Did you see this link?

http://sharepoint.findincity.net/view/63539928672422258257882/sharepoint-2010-modal-dialog-box-is-cropped

Free Windows Admin Tool Kit Click here and download it now
August 21st, 2015 3:25pm

Did not see that. Assuming this means the person has access to Sharepoint Designer? Any chance I can apply the CSS to the popup in a content editor web part?
August 21st, 2015 3:56pm

You can add CSS to a page using a CEWP. See the first link for the CSS and the second for adding it via the web part:

http://www.bentedder.com/customize-the-style-of-sharepoint-modal-dialog-boxes/

http://thepolymathlab.com/add-custom-css-to-sharepoint-2010-without-master-page

Free Windows Admin Tool Kit Click here and download it now
August 21st, 2015 4:08pm

Tried one of the solutions and my code looks like this. Am I doing something wrong?

<a onclick="NewItem2(event, this.href); return false;" href="https://s-portal.mamc.amed.ds.army.mil/private/doaos/log-cell/_layouts/listform.aspx?PageType=8&amp;ListId={3EDFF639-D37D-49F9-8140-1B46DBC2FC00}&amp;RootFolder=">your link name</a> <style>
.ms-dialog BODY #s4-bodyContainer {
	MIN-WIDTH: 1000px !important; PADDING-BOTTOM: 3px; PADDING-LEFT: 3px; WIDTH: auto !important; PADDING-RIGHT: 3px; PADDING-TOP: 3px
}
.ms-dialog BODY .no-menu#MSO_ContentTable {
	PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px
}</style>

August 21st, 2015 9:06pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics