<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>New Form Archives : Binary Bits</title>
	<atom:link href="https://blog.binarybits.net/tag/new-form/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.binarybits.net/tag/new-form/</link>
	<description>Bits &#38; Pieces - A blog by Kannan Balasubramanian</description>
	<lastBuildDate>Fri, 23 Jun 2017 10:15:28 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>SharePoint New Item Form Actions</title>
		<link>https://blog.binarybits.net/sharepoint-new-item-form-actions/</link>
					<comments>https://blog.binarybits.net/sharepoint-new-item-form-actions/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Fri, 23 Jun 2017 10:11:58 +0000</pubDate>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Actions]]></category>
		<category><![CDATA[New Form]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=901</guid>

					<description><![CDATA[<p>The following post describes 3 of the many new Form Actions available in SharePoint. Cancel: This example shows how to return to home page after user cancels creating the item. $(document).ready(function() { $('input[value=Cancel]').click(function() { window.location.replace("https://&#60;siteurl&#62;/sites/Site/SitePages/Home.aspx"); }); }); Pre-Save: This example shows how to show an alert and wait for OK or Cancel action. function PreSaveAction() { [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/sharepoint-new-item-form-actions/">SharePoint New Item Form Actions</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The following post describes 3 of the many new Form Actions available in SharePoint.</p>
<p><strong><b>Cancel</b>:</strong><br />
This example shows how to return to home page after user cancels creating the item.</p>
<pre class="lang:js decode:true ">$(document).ready(function() {
    $('input[value=Cancel]').click(function() {
        window.location.replace("https://&lt;siteurl&gt;/sites/Site/SitePages/Home.aspx");
    });
});</pre>
<p><strong>Pre-Save:<br />
</strong>This example shows how to show an alert and wait for OK or Cancel action.</p>
<pre class="lang:js decode:true">function PreSaveAction() {
    if (confirm("Proceed with saving the item?"))
        return true;
    else
        return false;
}
</pre>
<p><strong>Post-Save:</strong><br />
This example shows how to return to home page after user creates the item.</p>
<pre class="lang:js decode:true ">function PostSaveAction() {
    window.location.replace = "https:///sites/Site/SitePages/Home.aspx";
    return true;
}</pre>
<p>Do make a note that above code requires the Jquery is referenced in the page.</p>
<p>The post <a href="https://blog.binarybits.net/sharepoint-new-item-form-actions/">SharePoint New Item Form Actions</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/sharepoint-new-item-form-actions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: blog.binarybits.net @ 2026-04-23 06:39:57 by W3 Total Cache
-->