I am using submit handler in jQuery to validate the form before it passed to the Salesforce action function for submission, which in Firefox works perfectly.

Yet in Chrome, the submission gets to the iQuery function to validate the form and passes validation (checked with an alert box) but does not then continue to submit via the Action Function, instead the page silently refreshes with no error messages (neither javascript console or debug logs).

Here is the form:

<apex:form Id="form" > 

<input type="submit" value="submit" id="subBtn" name="subBtn" />
<apex:actionFunction name="doSubmit" action="{!submit}" />


And here is the jQuery function:

             submitHandler: function(form) {

Anyone know why this might be happening? Or a workaround?


1 Answer 1


You need to set a return value of false on complete of the actionFunction


<apex:actionFunction name="doSubmit" action="{!submit}" oncomplete="return false;" />

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .