January 7, 200917 yr I have a question about the new FM10 feature. I've enclosed a sample script. I have the OnObjectKeystroke on each of the enclosed fields. I would like the user to be able to push a single keystroke of T or F, and then move to the next field. I have it triggering a script that simply has a step go to next field. I do not understand why this gets caught in an endless loop after just pushing one key. This is not how I understand it to work via the help menu. Any ideas? Script_Trigger.fp7.zip
January 7, 200917 yr It appears to work much better on the "OnModify" state. The keystroke handling appears to restart (or is triggered by) the "Goto Next Field". Also, script triggers should return "True" to allow the action, see my changes to your file. Script_Trigger.fp7.zip
January 7, 200917 yr There are some problems with that approach, such as allowing invalid characters or multiple characters in the field. The attached mods allow only T or F and only move for tab, enter, return. Also, see an excellent writeup on keystroke and triggering here: http://sixfriedrice.com/wp/script-triggers-using-the-keystroke-trigger/ script_trigger.zip Edited January 7, 200917 yr by Guest
January 7, 200917 yr Author Thank you both for your responses. I learned something from each, and Bruce's rendition appears to be the one I'll end up using.
Create an account or sign in to comment