<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
		<id>https://www.bxpsoftware.com/wixi/index.php?action=history&amp;feed=atom&amp;title=JavaScript_-_Outcome_functionality_extension</id>
		<title>JavaScript - Outcome functionality extension - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.bxpsoftware.com/wixi/index.php?action=history&amp;feed=atom&amp;title=JavaScript_-_Outcome_functionality_extension"/>
		<link rel="alternate" type="text/html" href="https://www.bxpsoftware.com/wixi/index.php?title=JavaScript_-_Outcome_functionality_extension&amp;action=history"/>
		<updated>2026-04-18T11:00:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.2</generator>

	<entry>
		<id>https://www.bxpsoftware.com/wixi/index.php?title=JavaScript_-_Outcome_functionality_extension&amp;diff=2234&amp;oldid=prev</id>
		<title>Philip Lacey at 19:26, 9 November 2014</title>
		<link rel="alternate" type="text/html" href="https://www.bxpsoftware.com/wixi/index.php?title=JavaScript_-_Outcome_functionality_extension&amp;diff=2234&amp;oldid=prev"/>
				<updated>2014-11-09T19:26:02Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&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;' lang='en-GB'&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 19:26, 9 November 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l53&quot; &gt;Line 53:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 53:&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;&amp;lt;/syntaxhighlight&amp;gt;&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;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Module Specific:Form Management]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Topic:JavaScript]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Philip Lacey</name></author>	</entry>

	<entry>
		<id>https://www.bxpsoftware.com/wixi/index.php?title=JavaScript_-_Outcome_functionality_extension&amp;diff=1728&amp;oldid=prev</id>
		<title>Philip Lacey: Created page with &quot;In BeX, there is no direct way to add onchange functionality to an outcome drop down list.  It is however possible to extend the functionality of any drop down element with cu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.bxpsoftware.com/wixi/index.php?title=JavaScript_-_Outcome_functionality_extension&amp;diff=1728&amp;oldid=prev"/>
				<updated>2014-07-31T00:30:30Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;In BeX, there is no direct way to add onchange functionality to an outcome drop down list.  It is however possible to extend the functionality of any drop down element with cu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In bxp, there is no direct way to add onchange functionality to an outcome drop down list.  It is however possible to extend the functionality of any drop down element with custom JavaScript.&lt;br /&gt;
&lt;br /&gt;
The following can be added to your onLoad of the form.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// Based on http://stackoverflow.com/questions/6831528/add-a-second-onchange-event&lt;br /&gt;
//===================================================================&lt;br /&gt;
function fn_General_onChange_AppendFunction ( strObjectName ) { &lt;br /&gt;
&lt;br /&gt;
	//If that select exists&lt;br /&gt;
	if (document.getElementById(strObjectName)) {&lt;br /&gt;
&lt;br /&gt;
	//Get the object&lt;br /&gt;
		var objObject = document.getElementById(strObjectName);&lt;br /&gt;
		&lt;br /&gt;
		//Modern browsers&lt;br /&gt;
		if (objObject.addEventListener) { &lt;br /&gt;
			objObject.addEventListener(&amp;quot;change&amp;quot;, function(e){ &lt;br /&gt;
				e = e || event;&lt;br /&gt;
				//Calls your custom function&lt;br /&gt;
				fn_MyCustomFunction();&lt;br /&gt;
			}, false);&lt;br /&gt;
		} &lt;br /&gt;
		// Older browsers (IE 5 - 8)&lt;br /&gt;
		else if (objObject.attachevent) { &lt;br /&gt;
			objObject.attachEvent(&amp;quot;onchange&amp;quot;, function(e){&lt;br /&gt;
				e = e || event;&lt;br /&gt;
				//Calls your custom function&lt;br /&gt;
				fn_MyCustomFunction();&lt;br /&gt;
			});&lt;br /&gt;
		} &lt;br /&gt;
	}&lt;br /&gt;
} &lt;br /&gt;
//===================================================================&lt;br /&gt;
function fn_MyCustomFunction() {&lt;br /&gt;
&lt;br /&gt;
	//Gets the current outcome chosen&lt;br /&gt;
	var strContact_Outcome == document.getElementById ('strContact_Outcome').value;&lt;br /&gt;
	&lt;br /&gt;
	//if this is the outcome you want to do something with.&lt;br /&gt;
	if ( strContact_Outcome == 'Your Outcome' ) {&lt;br /&gt;
		//Perform some action&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
//===================================================================&lt;br /&gt;
//Now kick it off&lt;br /&gt;
fn_General_onChange_AppendFunction ( 'strContact_Outcome' );&lt;br /&gt;
//===================================================================&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Philip Lacey</name></author>	</entry>

	</feed>