This project is read-only.

InfoPath + LyteBox

Mar 1, 2010 at 3:13 PM
Edited Mar 2, 2010 at 2:00 PM

Here's the quick steps for getting an InfoPath(IP) browser hosted form display in LyteBox(LB):

  1. Configure LyteBox as described.
  2. On SharePoint page(s) where you want to open an IP browser form with LB, add a Content Editor part with HTML to include the LyteBox script and css.
  3. Add the appropriate html css tag.
    1. <A title="Click here to open the form." href="http://my.mossserver.com/site/_layouts/formserver.aspx?XmlLocation=/forms/formtoopem.xml&OpenIn=Browser" rev="width: 600px; height: 800px; scrolling: yes;" rel=lyteframe>[WOID]</A>
Mar 2, 2010 at 2:05 PM
Edited Mar 2, 2010 at 7:40 PM

I am not sure if I can use this to open a New form, as I use the createNewDocumentWithRedirect... 

And, for those in the SharePoint 2010 world there is a built-in method which provides some of this type of presentation.  For more info do a google search for the SharePoint Dialog Framework.

 

Update:  Okay I've tested some basic html trickery such as

<a  href="javascript:createNewDocumentWithRedirect('http:\u002f\u002fmy.mossserver.com\u002fFormServerTemplates\u002fFormToOpen.xsn', 'http:\u002f\u002fmy.mossserver.com\u002fHelpCenter\u002fHelpDesk', 'SharePoint.OpenXmlDocuments.2', true, 'http://my.mossserver.com/_layouts/FormServer.aspx?XsnLocation=http://my.mossserver.com/FormServerTemplates/FormToOpen.xsn', 1);" rev="width: 600px; height: 800px; scrolling: yes;" rel=lyteframe >Click for New</a>

with no success :(  The test above opens a lybox iframe, but the IP Form is nowhere to be seen.