<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://documentation.jomsocial.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://documentation.jomsocial.com/index.php?action=history&amp;feed=atom&amp;title=OnFormSave</id>
		<title>OnFormSave - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://documentation.jomsocial.com/index.php?action=history&amp;feed=atom&amp;title=OnFormSave"/>
		<link rel="alternate" type="text/html" href="http://documentation.jomsocial.com/index.php?title=OnFormSave&amp;action=history"/>
		<updated>2026-06-04T08:55:52Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.1</generator>

	<entry>
		<id>http://documentation.jomsocial.com/index.php?title=OnFormSave&amp;diff=1838&amp;oldid=prev</id>
		<title>Patricia Schmidt: /* Description */</title>
		<link rel="alternate" type="text/html" href="http://documentation.jomsocial.com/index.php?title=OnFormSave&amp;diff=1838&amp;oldid=prev"/>
				<updated>2013-03-09T07:15:31Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Description&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 07:15, 9 March 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Description===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Description===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Called after a form is saved. It &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;allow &lt;/del&gt;developer to either manipulate POST result from a form POST or store custom form data from onFormDisplay event.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Called after a form is saved. It &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;allows the &lt;/ins&gt;developer to either manipulate POST result from a form POST or store custom form data from onFormDisplay event.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Params===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Params===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Patricia Schmidt</name></author>	</entry>

	<entry>
		<id>http://documentation.jomsocial.com/index.php?title=OnFormSave&amp;diff=317&amp;oldid=prev</id>
		<title>Sinisakrisan: Created page with &quot;===Description=== Called after a form is saved. It allow developer to either manipulate POST result from a form POST or store custom form data from onFormDisplay event.  ===Pa...&quot;</title>
		<link rel="alternate" type="text/html" href="http://documentation.jomsocial.com/index.php?title=OnFormSave&amp;diff=317&amp;oldid=prev"/>
				<updated>2013-01-18T15:11:06Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===Description=== Called after a form is saved. It allow developer to either manipulate POST result from a form POST or store custom form data from onFormDisplay event.  ===Pa...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Description===&lt;br /&gt;
Called after a form is saved. It allow developer to either manipulate POST result from a form POST or store custom form data from onFormDisplay event.&lt;br /&gt;
&lt;br /&gt;
===Params===&lt;br /&gt;
* form name | name of the form saved.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
function onFormSave( $form_name ) &lt;br /&gt;
{&lt;br /&gt;
 	if( $form_name == 'jsform-profile-privacy' )&lt;br /&gt;
 	{&lt;br /&gt;
 		$myvar_1 = JRequest::getVar('custom1');&lt;br /&gt;
 		$myvar_2 = JRequest::getVar('custom2');&lt;br /&gt;
&lt;br /&gt;
 		/* the plugin is responsible in storing this var in database &lt;br /&gt;
 		   or using it in any way it like&lt;br /&gt;
 		*/&lt;br /&gt;
	}&lt;br /&gt;
	return ;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Note===&lt;br /&gt;
The plugin is free to do whatever it want with the POST var. In most cases, it might want to store it in the database. JomSocial does not automatically save any custom form data.&lt;/div&gt;</summary>
		<author><name>Sinisakrisan</name></author>	</entry>

	</feed>