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.

conditional script to add date into field

Featured Replies

I am using a bar code scanner to enter number into Account field. I need a conditional script to enter the date into field "Adate" after the bar code scanner enters the acconunt number into the "Account" field and t6hen create a then create a new record. The new record has to be there so the bar code scanner has a new field to input into.

The only way I can think of to do this is a conditional script. I keep having issues with any script I write. Any Ideas?

Thabks a milllon!

Suggest you post your file so we can look at it and see what you're doing.

Not sure what you mean by "conditional script": what exactly is the condition here?

If your scanner appends some kind of suffix to indicate the end of scan, then you can use that to trigger a script. Ideally, the suffix would be a return or a tab, so your script can run OnObjectSave.

The new record has to be there so the bar code scanner has a new field to input into.

It would be better to scan into a global field and create a new record only when actually needed. This way the date can be auto-entered on creation. After creating the record, clear the global filed and - if you expect another scan - place the cursor in it.

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.