<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Autopopulate a SharePoint Form from URL</title>
	<atom:link href="http://kitmenke.com/blog/2010/03/11/autopopulate-a-sharepoint-form-from-url/feed/" rel="self" type="application/rss+xml" />
	<link>http://kitmenke.com/blog/2010/03/11/autopopulate-a-sharepoint-form-from-url/</link>
	<description>Experiences with SharePoint, web development, and programming</description>
	<lastBuildDate>Thu, 17 May 2012 23:27:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Kit</title>
		<link>http://kitmenke.com/blog/2010/03/11/autopopulate-a-sharepoint-form-from-url/comment-page-1/#comment-1570</link>
		<dc:creator>Kit</dc:creator>
		<pubDate>Sat, 12 May 2012 03:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://kitmenke.com/blog/?p=237#comment-1570</guid>
		<description>Martin,
You will need to create a new link to the Upload.aspx page that passes your parameters. This means that you can&#039;t use the out of the box upload button. Keep in mind, that you&#039;ll need the default parameters that are passed to the page in addition to your custom one.. List, RootFolder, and Source.

The easiest way to get these, is just to click Upload like normal, copy the URL, and add your own URL parameter.
Thanks,
Kit</description>
		<content:encoded><![CDATA[<p>Martin,<br />
You will need to create a new link to the Upload.aspx page that passes your parameters. This means that you can&#8217;t use the out of the box upload button. Keep in mind, that you&#8217;ll need the default parameters that are passed to the page in addition to your custom one.. List, RootFolder, and Source.</p>
<p>The easiest way to get these, is just to click Upload like normal, copy the URL, and add your own URL parameter.<br />
Thanks,<br />
Kit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://kitmenke.com/blog/2010/03/11/autopopulate-a-sharepoint-form-from-url/comment-page-1/#comment-1569</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 11 May 2012 02:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://kitmenke.com/blog/?p=237#comment-1569</guid>
		<description>&quot;Just to share, when you want to do this  and prepopulate document library metadata, place the paramater in the upload.aspx not on the editform.aspx (page where the metadata are captured)&quot;

This is exactly what i&#039;m trying to accomplish (pass parameters for uploading a document to document library), but I can&#039;t edit the &quot;/_layout/upload.aspx&quot; as I&#039;m not an admin.  Any other way to do this?  I&#039;ve been working non-stop on this for a few days trying to do this OOTB.

I&#039;ve seen a write-up that recreated the multiple document upload in a CEWP, but it doesn&#039;t call the editform.aspx afterward to capture the parameters.....</description>
		<content:encoded><![CDATA[<p>&#8220;Just to share, when you want to do this  and prepopulate document library metadata, place the paramater in the upload.aspx not on the editform.aspx (page where the metadata are captured)&#8221;</p>
<p>This is exactly what i&#8217;m trying to accomplish (pass parameters for uploading a document to document library), but I can&#8217;t edit the &#8220;/_layout/upload.aspx&#8221; as I&#8217;m not an admin.  Any other way to do this?  I&#8217;ve been working non-stop on this for a few days trying to do this OOTB.</p>
<p>I&#8217;ve seen a write-up that recreated the multiple document upload in a CEWP, but it doesn&#8217;t call the editform.aspx afterward to capture the parameters&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kit</title>
		<link>http://kitmenke.com/blog/2010/03/11/autopopulate-a-sharepoint-form-from-url/comment-page-1/#comment-1558</link>
		<dc:creator>Kit</dc:creator>
		<pubDate>Tue, 17 Apr 2012 16:33:39 +0000</pubDate>
		<guid isPermaLink="false">http://kitmenke.com/blog/?p=237#comment-1558</guid>
		<description>Chris,
Definitely! You&#039;ll need to change the code to parse location.href for your project&#039;s ID. Maybe use a regular expression or &lt;a href=&quot;https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split&quot; title=&quot;split&quot; rel=&quot;nofollow&quot;&gt;split&lt;/a&gt;: location.href.split(&#039;/&#039;).
Thanks,
Kit</description>
		<content:encoded><![CDATA[<p>Chris,<br />
Definitely! You&#8217;ll need to change the code to parse location.href for your project&#8217;s ID. Maybe use a regular expression or <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split" title="split" rel="nofollow">split</a>: location.href.split(&#8216;/&#8217;).<br />
Thanks,<br />
Kit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://kitmenke.com/blog/2010/03/11/autopopulate-a-sharepoint-form-from-url/comment-page-1/#comment-1557</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 17 Apr 2012 14:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://kitmenke.com/blog/?p=237#comment-1557</guid>
		<description>I know I&#039;m a bit (or to be accurate very!) late on this post, but if my URLs have the format http://sharepoint.abc.def/projects/123/... is there any way of getting the 123 out of the URL given it&#039;s not referenced by an = sign as in your examples? The 123 is my project ID and I&#039;d like it to automatically appear in a form that writes to a central list of projects.
Thanks , Chris</description>
		<content:encoded><![CDATA[<p>I know I&#8217;m a bit (or to be accurate very!) late on this post, but if my URLs have the format <a href="http://sharepoint.abc.def/projects/123/" rel="nofollow">http://sharepoint.abc.def/projects/123/</a>&#8230; is there any way of getting the 123 out of the URL given it&#8217;s not referenced by an = sign as in your examples? The 123 is my project ID and I&#8217;d like it to automatically appear in a form that writes to a central list of projects.<br />
Thanks , Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kit Menke&#039;s Blog &#187; Autopopulate a SharePoint Form from URL (with SPUtility.js)</title>
		<link>http://kitmenke.com/blog/2010/03/11/autopopulate-a-sharepoint-form-from-url/comment-page-1/#comment-356</link>
		<dc:creator>Kit Menke&#039;s Blog &#187; Autopopulate a SharePoint Form from URL (with SPUtility.js)</dc:creator>
		<pubDate>Thu, 11 Nov 2010 02:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://kitmenke.com/blog/?p=237#comment-356</guid>
		<description>[...] This post is the sequel to my first post: Autopopulate a SharePoint Form from URL. [...]</description>
		<content:encoded><![CDATA[<p>[...] This post is the sequel to my first post: Autopopulate a SharePoint Form from URL. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kit</title>
		<link>http://kitmenke.com/blog/2010/03/11/autopopulate-a-sharepoint-form-from-url/comment-page-1/#comment-353</link>
		<dc:creator>Kit</dc:creator>
		<pubDate>Sat, 09 Oct 2010 14:45:39 +0000</pubDate>
		<guid isPermaLink="false">http://kitmenke.com/blog/?p=237#comment-353</guid>
		<description>&lt;p&gt;Assuming you mean a single select choice field.. yes! Check out &lt;a href=&quot;http://sputility.codeplex.com/&quot; rel=&quot;nofollow&quot;&gt;SPUtility.js&lt;/a&gt;.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Assuming you mean a single select choice field.. yes! Check out <a href="http://sputility.codeplex.com/" rel="nofollow">SPUtility.js</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://kitmenke.com/blog/2010/03/11/autopopulate-a-sharepoint-form-from-url/comment-page-1/#comment-352</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Sat, 09 Oct 2010 13:29:34 +0000</pubDate>
		<guid isPermaLink="false">http://kitmenke.com/blog/?p=237#comment-352</guid>
		<description>Did you come up with a DropDown solution?

Tks</description>
		<content:encoded><![CDATA[<p>Did you come up with a DropDown solution?</p>
<p>Tks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kit</title>
		<link>http://kitmenke.com/blog/2010/03/11/autopopulate-a-sharepoint-form-from-url/comment-page-1/#comment-225</link>
		<dc:creator>Kit</dc:creator>
		<pubDate>Fri, 20 Aug 2010 13:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://kitmenke.com/blog/?p=237#comment-225</guid>
		<description>Will,
After editing the page...
&lt;ol&gt;
		&lt;li&gt;Add a &quot;Content Editor Web Part&quot;&lt;/li&gt;
		&lt;li&gt;Click Edit -&gt; Modify Shared Web Part&lt;/li&gt;
		&lt;li&gt;Click Source Editor&lt;/li&gt;
		&lt;li&gt;Paste in your JavaScript&lt;/li&gt;
&lt;/ol&gt;

Thanks,
Kit</description>
		<content:encoded><![CDATA[<p>Will,<br />
After editing the page&#8230;</p>
<ol>
<li>Add a &#8220;Content Editor Web Part&#8221;</li>
<li>Click Edit -&gt; Modify Shared Web Part</li>
<li>Click Source Editor</li>
<li>Paste in your JavaScript</li>
</ol>
<p>Thanks,<br />
Kit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: will</title>
		<link>http://kitmenke.com/blog/2010/03/11/autopopulate-a-sharepoint-form-from-url/comment-page-1/#comment-224</link>
		<dc:creator>will</dc:creator>
		<pubDate>Fri, 20 Aug 2010 07:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://kitmenke.com/blog/?p=237#comment-224</guid>
		<description>Hi,
How can i do this:
&quot;Stick the following code in a Content Editor on your NewForm.aspx or EditForm.aspx.&quot;
 
when i put the javascript code in the newform.aspx , an xslt error apears</description>
		<content:encoded><![CDATA[<p>Hi,<br />
How can i do this:<br />
&#8220;Stick the following code in a Content Editor on your NewForm.aspx or EditForm.aspx.&#8221;<br />
 <br />
when i put the javascript code in the newform.aspx , an xslt error apears</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kit</title>
		<link>http://kitmenke.com/blog/2010/03/11/autopopulate-a-sharepoint-form-from-url/comment-page-1/#comment-221</link>
		<dc:creator>Kit</dc:creator>
		<pubDate>Wed, 18 Aug 2010 20:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://kitmenke.com/blog/?p=237#comment-221</guid>
		<description>Mike,
Your URL will have a &lt;a href=&quot;http://en.wikipedia.org/wiki/Query_string&quot; rel=&quot;nofollow&quot;&gt;querystring&lt;/a&gt; that looks something like this:
[cc lang=&quot;text&quot; escaped=&quot;true&quot;]/Lists/ProjectTasks/NewForm.aspx?projectID=523&amp;favoriteColor=Red[/cc]

Then your [cci]CustomExecuteFunction[/cci] will look something like this:
[cc lang=&quot;javascript&quot; escaped=&quot;true&quot;]
function CustomExecuteFunction() {
    AutopopulateInputFromURL(&#039;Project ID&#039;,&#039;projectID&#039;);
    AutopopulateInputFromURL(&#039;Favorite Color&#039;,&#039;favoriteColor&#039;);
}
[/cc]

Keep in mind the first parameter to [cci]AutopopulateInputFromURL[/cci] is the name of your field as it looks in SharePoints user interface and the second parameter is the name of your query string variable (the variable in the URL).</description>
		<content:encoded><![CDATA[<p>Mike,<br />
Your URL will have a <a href="http://en.wikipedia.org/wiki/Query_string" rel="nofollow">querystring</a> that looks something like this:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/Lists/ProjectTasks/NewForm.aspx?projectID=523&amp;favoriteColor=Red</div></div>
<p>Then your <code class="codecolorer text default"><span class="text">CustomExecuteFunction</span></code> will look something like this:</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">function</span> CustomExecuteFunction<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; AutopopulateInputFromURL<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Project ID'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'projectID'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; AutopopulateInputFromURL<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Favorite Color'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'favoriteColor'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p>Keep in mind the first parameter to <code class="codecolorer text default"><span class="text">AutopopulateInputFromURL</span></code> is the name of your field as it looks in SharePoints user interface and the second parameter is the name of your query string variable (the variable in the URL).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

