Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Scanning Script move to field

Featured Replies

I have a Db setup that allows users to scan barcodes and save them in a barcode field. I'd like to set it up so that after they scan the barcode, it will move the cursor to another field automatically. I also have a button setup to navigate to the next record and automatically go to the Barcode field to wait for input. Below is what I've got for my button, but I can't seem to figure out how to set it up so that the cursor will automatically move to a specific field in that record after entering the barcode fom the scanner.

 

So far I have:

Go to Record/Request/Page [Next; Exit after last:Off]

Go to Field [UPCS::UPC]

 

Almost all barcode scanners pass a carriage return at the end of each scanned barcode. Set your barcode field to to go to next object using return and enter. You may do it from inspector window while the barcode field is selected:

 

image.thumb.png.5090c92e51e28ca76188a341d91b8214.png

 

Now when scanner gun passes the return carriage, the mouse cursor will jump to the next object. This also can trigger a script trigger so you can set your script to trigger on "object save" or "object exit" for the barcode field.

 

This way, when scanner gun passes the  return carriage, it forces FileMaker to exit the field and run your script. Then the script trigger can go to next record and then select any field you want.

  • Author

That is true. I left out some information on that. I actually turned off CR on my scanner as it was adding a CR to the end of the text in my barcode field. 

If I turn CR back on in the scanner and use Return to navigate to the next object will it still add the CR to my barcode text?

Edited by OneStop

if you setup the barcode field to go to next object by return and enter, then it wont store that in your field.

Edited by siroos12

  • Author

Excellent tyvm.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.