Page 1 of 1

noinput and skip

Posted: June 26th, 2019, 10:43 am
by AriSilva
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

Re: noinput and skip

Posted: June 26th, 2019, 3:06 pm
by aaronw
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;