title: APEX: Call JavaScript function after validation but before processing
body: <p>I have been tasked with re-creating an old PL/SQL Web Toolkit front end in Application Express (Apex).</p>
  
  <p>I would like to display a popup after the page is submitted and <strong>after computations and validations</strong>.</p>
  
  <p>The page can be submitted by clicking a button OR by hitting enter.</p>
  
  <p>I have googled and got a modal popup working (called by javascript) but I can't seem to call it at the right point. I can call it on submit (before the validations etc.) but not after the validations.</p>
  
  <p>I have tried creating a branch to URL at the correct processing point and then have the URL set to: </p>
  
  <pre><code>javascript:openForm();
  </code></pre>
  
  <p>But then I get a page will not display error.</p>
  
  <p>Can anyone out there explain how I could do this?</p>
  
  <p>Apex Version: 4.0.2
  Oracle 10g</p>