<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - more than 1 function in cfform tag "onSubmit"</title>
    <link>https://forums.adobe.com/community/coldfusion/coldfusion_forms?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Wed, 20 Nov 2013 15:54:05 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2013-11-20T15:54:05Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: more than 1 function in cfform tag "onSubmit"</title>
      <link>https://forums.adobe.com/message/5858586?tstart=0#5858586</link>
      <description>&lt;!-- [DocumentBodyStart:9d20dd4c-0f97-408c-b86a-9ba86d6fc609] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;ColdFusion is simply behaving as it should. You will notice that the script that currently runs upon onSubmit ends in a return-statement. That signals the end of the event-handler.&amp;nbsp; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you wish to check the e-mail as well, you could run one script that performs both functions. I was thinking of something like the following, just off the cuff &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;onsubmit="if(!document.getElementById('Agree').checked) {alert('You must agree to the Terms and Conditions'); return false; } else {return checkEmail(this);}"&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:9d20dd4c-0f97-408c-b86a-9ba86d6fc609] --&gt;&lt;img src='/beacon?t=1415919921476' /&gt;</description>
      <pubDate>Wed, 20 Nov 2013 15:54:05 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5858586?tstart=0#5858586</guid>
      <dc:date>2013-11-20T15:54:05Z</dc:date>
      <clearspace:dateToText>11 months 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>more than 1 function in cfform tag "onSubmit"</title>
      <link>https://forums.adobe.com/message/5674950?tstart=0#5674950</link>
      <description>&lt;!-- [DocumentBodyStart:6941f68f-7a75-4333-bb51-122655c07a56] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;i need to call atleast 3 javascript functions in a form&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;using "onSubmit" works fine with one function but when i try to add another nothing happens....&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;cfform &lt;/p&gt;&lt;p&gt;action="postpage.cfm" method="POST" &lt;/p&gt;&lt;p&gt;target="_self" &lt;/p&gt;&lt;p&gt;onsubmit="if(document.getElementById('Agree').checked) { return true; } else { alert('You must agree to the Terms and Conditions'); return false; }"&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;"return checkEmail(this);" is one of the funtions. it checks to see if 2 cfinputs are the same&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;how do i add multiple functions to onSubmit &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;tnx in advance&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:6941f68f-7a75-4333-bb51-122655c07a56] --&gt;</description>
      <pubDate>Thu, 12 Sep 2013 08:21:31 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5674950?tstart=0#5674950</guid>
      <dc:date>2013-09-12T08:21:31Z</dc:date>
      <clearspace:dateToText>1 year 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

