<?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=OnFormDisplay</id>
		<title>OnFormDisplay - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://documentation.jomsocial.com/index.php?action=history&amp;feed=atom&amp;title=OnFormDisplay"/>
		<link rel="alternate" type="text/html" href="http://documentation.jomsocial.com/index.php?title=OnFormDisplay&amp;action=history"/>
		<updated>2026-06-05T00:58:56Z</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=OnFormDisplay&amp;diff=319&amp;oldid=prev</id>
		<title>Sinisakrisan: Created page with &quot;===Description=== Called before any (non-ajax) form is displayed. You may insert additional HTML or fields at the top or, the bottom of the form about to be rendered.  ===Para...&quot;</title>
		<link rel="alternate" type="text/html" href="http://documentation.jomsocial.com/index.php?title=OnFormDisplay&amp;diff=319&amp;oldid=prev"/>
				<updated>2013-01-18T15:14:43Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===Description=== Called before any (non-ajax) form is displayed. You may insert additional HTML or fields at the top or, the bottom of the form about to be rendered.  ===Para...&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 before any (non-ajax) form is displayed. You may insert additional HTML or fields at the top or, the bottom of the form about to be rendered.&lt;br /&gt;
&lt;br /&gt;
===Params===&lt;br /&gt;
*form name | name of the form about to be rendered.&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 onFormDisplay( $form_name ) &lt;br /&gt;
{&lt;br /&gt;
	/* &lt;br /&gt;
		Add additional form elements at the bottom privacy page&lt;br /&gt;
 	*/&lt;br /&gt;
 	$elements = array();&lt;br /&gt;
 	if( $form_name == 'jsform-profile-privacy' )&lt;br /&gt;
 	{&lt;br /&gt;
 		$obj = new CFormElement();&lt;br /&gt;
 		$obj-&amp;gt;label 	= 'Labe1 1';&lt;br /&gt;
 		$obj-&amp;gt;position  = 'after';&lt;br /&gt;
 		$obj-&amp;gt;html 		= '&amp;lt;input name=&amp;quot;custom1&amp;quot; type=&amp;quot;text&amp;quot;&amp;gt;';&lt;br /&gt;
 		$elements[] = $obj; &lt;br /&gt;
 		&lt;br /&gt;
 		$obj = new CFormElement();&lt;br /&gt;
 		$obj-&amp;gt;label 	= 'Labe1 2';&lt;br /&gt;
 		$obj-&amp;gt;position  = 'after';&lt;br /&gt;
 		$obj-&amp;gt;html 		= '&amp;lt;input name=&amp;quot;custom2&amp;quot; type=&amp;quot;text&amp;quot;&amp;gt;';&lt;br /&gt;
 		$elements[] = $obj; &lt;br /&gt;
 		&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	return $elements;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The code above will insert 2 new form in the privacy setting page&lt;br /&gt;
&lt;br /&gt;
[[File:OnFormDisplay.jpg]]&lt;/div&gt;</summary>
		<author><name>Sinisakrisan</name></author>	</entry>

	</feed>