Sorry for the confusing title! I'll try to explain my problem a little bit better..
So the site that I'm building has a contact form (created using InfoPath2010) on each page that the visitor can fill and their answer is saved into a SharePoint list that is residing at the root level of the site. (/Lists/Answers for example)
Now, the form works fine on the homepage because the list is at the same level but when I open a subsite I get an error that the list cannot be found.
So the main problem is that FormLocation in BrowserFormWebPart always takes the current subsite as a starting point and it looks like there's no way to make it look for the Form starting always from the root level.
<WebUI:BrowserFormWebPart runat="server" AllowEdit="True" AllowConnect="True" SubmitBehavior="KeepOpen" ConnectionID="00000000-0000-0000-0000-000000000000" Title="InfoPath Form Web Part" IsIncluded="True" Dir="Default" ExportMode="All" IsVisible="True" ShowFormRibbon="False" DefaultView="Edit item" AllowMinimize="True" ExportControlledProperties="True" ZoneID="ImportedPartZone" ID="g_18238c7b_1447_44f6_b0de_64e6d7555930" FormLocation="/Lists/Answers" FrameState="Normal" SendDataOnPostback="True" AllowHide="True" SuppressWebPartChrome="False" DetailLink="" HelpLink="" MissingAssembly="Cannot import this Web Part." PartImageSmall="" AllowRemove="True" ListFormMode="Editable" ContentTypeId="0x010082E93815C5A4B14997932C045B09BFBC" HelpMode="Modeless" FrameType="Default" AllowZoneChange="True" PartOrder="0" Description="Use this Web Part to display an InfoPath browser-enabled form." PartImageLarge="" IsIncludedFilter="" __MarkupType="vsattributemarkup" __WebPartId="{18238c7b-1447-44f6-b0de-64e6d7555930}" WebPart="true" Height="" Width=""></WebUI:BrowserFormWebPart>
Does anyone have any idea how to fix this issue?
Thanks guys!!