May 25, 201114 yr Hi there, I am trying to implement using a barcode scanner with FMP. The usb scanner sends the return keycode after each input (as do most scanners). After each input, I want to move to the next field. My script is quite simple: if code(get(triggerkeycode)) = 10 or code(get(triggerkeycode)) = 13 (both return and enter) Go To Field(Field 2) end if Which has been attached as a script trigger on OnObjectKeystroke. This works fine, however, after moving to the next field, it still sends the return code and the new field gets a new line. Is there anyway I could send null or not send anything at all after it goes to the next field? Thanks heaps!
May 25, 201114 yr This works fine, however, after moving to the next field, it still sends the return code and the new field gets a new line. Add this step before End If: Exit Script [Result:0] See also: http://www.filemaker.com/11help/html/edit_layout.10.34.html#1029649
May 25, 201114 yr Author Add this step before End If: Exit Script [Result:0] See also: http://www.filemaker.com/11help/html/edit_layout.10.34.html#1029649 Thankyou very much!
Create an account or sign in to comment