Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cancel page submit using Javascript not Dynamic Action

Tony AndrewsApr 29 2014 — edited Apr 29 2014

I'm building some functionality that requires some Javascript processing to validate the page before it is submitted and prevent the submit if there are errors.  I have got this working using a dynamic action that fires Before Page Submit with a Javascript firing condition and a Cancel Event action, and it works just fine.  However, the intention is to use this functionality in several pages and it would be nicer if the functionality could be implemented in pure Javascript (e.g. code in page template). 

According to https://api.jquery.com/submit/ this should be possible:

$( "#wwvFlowForm" ).submit(function( event ) {

  alert( "Handler for .submit() called." );

  event.preventDefault();

});

However I can't get it to work in APEX.  Can anyone suggest a solution?

This post has been answered by Tom Petrus on Apr 29 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2014
Added on Apr 29 2014
2 comments
4,147 views