Wednesday, December 24, 2008 11:20 AM rojay12

Getting all those Infopath forms relinked in SharePoint!

This is something I threw together when having to relink a couple dozen InfoPath libraries all containing 100-1000 forms. Why Microsoft doesn't have a check all button at the top of the page is beyond me. Here it is...

1) Open the library. Click Settings -> Form Library Settings -> Relink documents to this Library
2) Open this page in SharePoint designer.
2) Add this to the top of the page after the <Form> tag.

<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.aspnetForm.chkRepair)" >

3) Save, Refresh the page, click and thank me :)!

Filed under: ,

Comments

# Getting all those Infopath forms relinked in SharePoint! - Code Junkie

Pingback from  Getting all those Infopath forms relinked in SharePoint! - Code Junkie

# re: Getting all those Infopath forms relinked in SharePoint!

Wednesday, January 07, 2009 9:50 AM by Todd Vorpahl

Saw your comments here...THANKS.  I plan to try this...not a programmer myself, but will get I.T. to help me.

Question.  Right now, every time I (re)Publish a document to my sharepoint document library...all existing forms automatically get updated to the new document (i just published)

I thought this is the point of "linking".  It did not always do this.  Any idea how i changed this (like i said, no coding has been done) and how I can get it back.  I want to control which documents should get updated and which I want to stay in the old version.

Leave a Comment

(required) 
(required) 
(optional)
(required)