Page 1 of 1

[Beginner] Disable tab from fld to fld until cond met

Posted: Fri Jan 23, 2015 5:36 am
by shawnblc
For the lack of the rights ... I'm trying to keep "focus" in a particular field until (disabling tabbing to the next field).

Example:

Right now a user can tab from fldA to fldB even if fldA doesn't contain something I want. I'd prefer them to enter something I want before being able to tab.

Can someone point me in the right direction?

Re: [Beginner] Disable tab from fld to fld until cond met

Posted: Fri Jan 23, 2015 6:02 am
by Simon
Hi Shawn,
Here you go;

Code: Select all

on tabKey
   if target is empty then exit tabKey
   pass tabKey
end tabKey
put that into the card script.

Simon

Re: [Beginner] Disable tab from fld to fld until cond met

Posted: Fri Jan 23, 2015 6:06 am
by shawnblc
Simon wrote:Hi Shawn,
Here you go;

Code: Select all

on tabKey
   if target is empty then exit tabKey
   pass tabKey
end tabKey
put that into the card script.

Simon

I was trying the following with no luck. Let me try your solution. Thanks Simon.

UPDATE: Definitely works. Thanks again.

UPDATE 2: Maybe I was a little quick on that. It's not working.

Code: Select all

set the autoTab of field "First Name" to true