Changing the tab order of entry controls at runtime (skip a field in Change mode)

Applies to: posted in the Clarion 6 group; the thread does not name a template chain.

Problem

On an update form the poster wanted the cursor to go from ?VIS:StartTime to ?VIS:CompleteTime when the form is in ChangeRecord mode, and to ?VIS:Category in InsertRecord mode. He put this in the Accepted embed of ?VIS:StartTime:

IF ThisWindow.Request = ChangeRecord
  SELECT(?VIS:CompleteTime)
END

In ChangeRecord mode the user does not change the value of ?VIS:StartTime, so no Accepted event fires and the code never runs.

Solution

  1. Use PROP:Follows and PROP:NextField to change the order of the controls. The poster confirmed that PROP:Follows was exactly what he needed.
  2. Alternative: set ?VIS:StartTime{PROP:Touched} = True in the control's Event:Selected embed, so that Accepted fires even though the user changed nothing.
  3. Alternative: set PROP:Touched in the TakeSelected embed of the control. It forces an EVENT:Accepted although the value was not changed.

Caveats

  • The thread names the properties but shows no code for PROP:Follows or PROP:NextField; read their entries in the help.
  • With the PROP:Touched route the Accepted embed runs on every pass through the field, so the code in it must be fine to run when nothing changed.
  • Only the PROP:Follows route was reported as working by the original poster.

Today (2026)

The properties named here are the same language-level properties; likely still valid on current Clarion, not re-tested.

Sources: Todd W. (Sep 2005, the question), Marius L., Maarten, Mike H. (Sep 2005) in softvelocity.public.clarion6.