Stopping field edit under selected conditions
In some of my layouts selected fields are hidden via conditional formatting. This may, for example be a field required during an update or edit, but hidden during browsing.
I have attached a script to the OnObjectEnter event that moves the focus to another field or object on the layout via Go To Field or Go to Object if my "Edit/Update status" is inactive. This does the job but the field and it's contents does unfortunately flash for a moment should the user press or click on it.
Is there a better way to do this? (FM Pro 12).