noinput and skip

Discussions about CSEntry
Post Reply
AriSilva
Posts: 259
Joined: July 22nd, 2016, 3:55 pm

noinput and skip

Post by AriSilva » June 26th, 2019, 10:43 am

If in an onfocus I need to have a noinput AND a skip statement, what should go first?
Apparently if I code
noinput;
skip to ....

it does no execute the skip
Does that mean the noinput is really a jump to the postproc?
I did not understand that by reading the help

Best
Ari
Best
Ari

aaronw
Posts: 190
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: noinput and skip

Post by aaronw » June 26th, 2019, 3:06 pm

Your understanding is correct. The relevant line in the help is:
when the statement (noinput) is executed in an onfocus, control passes directly from the field's onfocus to the field's postproc
.

This is how I might structure a noinput followed by a skip:
onfocus

    noinput
;

postproc

    if
needToSkip then
        skip to
destinationField;
   
endif;

Post Reply