While working with Infopath Forms, i was suppose to move infopath forms from one library to another and then re-link them,
while moving was pretty easy using the library explorer view, re-linking was a pain going through manually marking check box for
each and every form and then re-linking those forms, but there is a solution you might find useful, Follow the steps and you will be relieved of the pain 🙂
- GOTO Form Library >> Form Library Settings >> Under Permission and Management >> Relink Documents to this library >>
- Copy the URL >> Opent this Repair.aspx page in sharepoint designer
- Change the page view to Split so that code part is visible >> View >> Page >> Split
- Locate the <FORM> Tag, scroll bottom, usually will find around line 204
- Just beneath the </FORM> form closing tag paste the code given below, remember to change the double quotes as due to different webpage font it may not be recognized and will result in error,
- Save the page and refresh the page in browser and scroll to the bottom of the page, you will get a “Check All “ button at the bottom
- click on that and Viola, your all check boxes are marked ……. 🙂
<FORM id="SubmitRepairDocsForm" method="POST" action="">
<INPUT id="SubmitRepairRedirectList" type="hidden" name="SubmitRepairRedirectList" />
<INPUT id="SubmitRepairRedirectFolder" type="hidden" name="SubmitRepairRedirectFolder" />
<INPUT id="SubmitRepairDocs" type="hidden" name="SubmitRepairDocs" />
<SharePoint:FormDigest runat=server ForceRender="true"/>
<script type="text/javascript" language="javascript">
function CheckAll(chk)
{
for (i = 0; i < chk.length; i++)
chk[i].checked = true ;
}
</script>
<input type="button" value="Check All" onclick="CheckAll(document.forms.aspnetForm.chkRepair)" >
</FORM>
Leave a Reply