1

Hi I wrote validation method for save button,error message is coming but form is submitting,How to resolve this issue.Thanks in advance.

4
  • try to use <apex:commandButton value="Save" onclick="return checkRepCust();" action="{!doSave}" oncomplete="executeWS();" rendered="{!NOT(isEditOperation)}" /> Jul 8, 2016 at 8:00
  • Hi i tried to kept return in onclick now the form is not submitting if error is not coming also
    – Swetha
    Jul 8, 2016 at 8:20
  • check if without error you are getting true? Jul 8, 2016 at 9:07
  • Can you post your VF and APex code? Posting code will help us debug. Jul 8, 2016 at 10:43

0

You must log in to answer this question.

Browse other questions tagged .