Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Stopping processing inside an event

$
0
0

I have a question similar to this post:

http://forums.adobe.com/message/3287875

 

I am inside a click event (button push) in Adobe Forms in a JavaScript routine.  I want to exit conditionally.  The above message had no repy and other searches did not find what I need.

 

Example in pseudo-code:

----- data.SF1.BTN_SHOW::click: - (JavaScript, client) ---------------------------------------------

var x = 1;

 

xfa.host.messageBox ("Before");

if (x==1) {

  return;

}

xfa.host.messageBox ("After");

 

If x is not 1, I want to see two popups, if it is 1 only the first one.  I tried 'return', 'exit', 'break', 'quit' (and a few other possible commands).  Since I am not inside a function, 'return' does not appear to work.

 

 

Thanks in advance.  I find the forums hard to navigate, so I hope I get an answer and find this post...

 

Regards,

Wolfgang


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>