Skip navigation
daveyboyl
Currently Being Moderated

Exiting from an event

Jul 16, 2012 5:44 AM

Hi,

Apologies in advance for what is probably a really basic question however I can't find the answer anywhere...

 

is there an easy way to exit from an event without executing all the formcalc code?

 

Cheers,

David

 
Replies
  • Currently Being Moderated
    Jul 16, 2012 10:49 AM   in reply to daveyboyl

    Hi David,

     

    If you have a look at the end of this example, you will see how you can check how the user has exited the field. Wrap the condition you want in an if statement.

     

    http://assure.ly/j1KdNq

     

    Hope that helps,

     

    Niall

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 16, 2012 11:15 AM   in reply to daveyboyl

    Sorry David,

     

    I answered thinking I was in a different thread.

     

    I would approach it from:

     

    if (check eq passed) then

         // your script block

    endif

     

    So that the script inside the if statement will only fire if the condition is met.

     

    Does that make sense?

     

    Niall

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 16, 2012 12:02 PM   in reply to daveyboyl

    Hi David,

     

    "return" is reserved for use within a function. You cannot use it outside of a function.

     

    "break" is used within a loop or switch statement.

     

    Not sure about "exit", but I suspect not.

     

    Niall

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points