• skodisana151887
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

Hi All,

 

I have three action methods in different controllers which inserts records in three different objectsI am invoking the action methods through JavaScript (using ActionFunction Tag). i have some Standard validation rules on the three objects. When i am invoking the first action method using JavaScript, If an exception comes (Validation Rules) the second action method should not invoke.

 

Since it is a JavaScript all the action methods are getting called one by one even though exception(Validation Rules) occurs in the first action methods and error messages on the visualforce screen are being displayed and getting vanished.

 

So please suggest how to stop the JavaScript function if an exception occurs in the controllers.

 

Thanks

Srikanth.K