Normal Topic Prevent Esc or Click Away from Popupchoicelist (Read 375 times)
BWETTLAUFER
Full Member
***
Offline



Posts: 216
Location: Cambridge, Ontario
Joined: Apr 9th, 2010
Prevent Esc or Click Away from Popupchoicelist
Mar 24th, 2012 at 12:12am
Print Post Print Post  
Hey all,

I have a quick question -- I have a popupchoicelist that can be clicked on, a status can be chosen, and the record is updated.

However, if the popupchoicelist comes up, and rather than choosing a status, the staff member hits Esc or clicks away on the form, it damages the existing status.  It often truncates a part of the status leaving "In Prog" rather than "In Progress" and so on.

I've tried adding programming on element entry, saving the value to a global value, and then putting it back on element exit if the status isn't updated, but that didn't work ... ideas?

Thanks!
Blair
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Prevent Esc or Click Away from Popupchoicelist
Reply #1 - Mar 24th, 2012 at 12:47am
Print Post Print Post  
Can you olace the value returned from the menu in a variable, rather than an element, so you can check it before putting it in the element?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
BWETTLAUFER
Full Member
***
Offline



Posts: 216
Location: Cambridge, Ontario
Joined: Apr 9th, 2010
Re: Prevent Esc or Click Away from Popupchoicelist
Reply #2 - Mar 24th, 2012 at 1:02am
Print Post Print Post  
Hey sir ... thanks.  I already did that. 

My problem is that I think if someone hits ESC, or clicks away, it's not registering as "on form exit", is it?
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Prevent Esc or Click Away from Popupchoicelist
Reply #3 - Mar 24th, 2012 at 3:45am
Print Post Print Post  
BWETTLAUFER wrote on Mar 24th, 2012 at 1:02am:
Hey sir ... thanks.  I already did that. 

My problem is that I think if someone hits ESC, or clicks away, it's not registering as "on form exit", is it?


Not if they are simply dismissing the popup. If you are using a variable, there should be no affect on the element.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged