We create a link to a InfoPath client-based form (meaning that the form is open at the client machine which have infopath installed.) by using the following source code inside a Content Editor web part
<IMG alt="" src="/_layouts/images/rect.gif"> <A onclick="createNewDocumentWithRedirect('http:\u002f\u002fwww.yoursite.com\u002fsce\u002fSubSiteName\u002fListName\u002fForms\u002ftemplate.xsn', 'http:\u002f\u002fwww.yoursite.com\u002fsce\u002fSubSiteName\u002fListName', 'SharePoint.OpenXmlDocuments.2', true, 'http://www.yoursite.com/SubSiteName/_layouts/FormServer.aspx?XsnLocation=http://www.yoursite.com/SubSiteName/ListName/Forms/template.xsn', 0);return false;" href="#">New ListName Document</A>
whereby
www.yoursite.comto the name of your siteSubSiteNameto the name of the sub site inside your site.ListNameto the name of the list that you are performing on.
So, my question is:
Is it possible to use the same function - createNewDocumentWithRedirect to redirect into a web-based infopath form (meaning that when I click the link, it open a web-based infopath form without the need to have Infopath installed on the client machine)?