Skip 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.

Update Field With Auto Entry Serial Number

Featured Replies

I have a field with an Auto Entry Serial Number. The field is a text field that uses a number with leading zero's, i.e. "00142" and increases by "1" with each new record request.I need to create a script such that when a record is deleted, the serial number automatically gets reset so the next new record continues where it was left. My trys using the "Setfield" script and adding 1 converts the serial number to a number and I lose the leading zeros.

Thank you for your help.

DT

if you do an advanced search in these forums for +serial +reset you should get a tons of posts on this subject.

As for your issue of padding the number with zeros, see this thread

http://www.fmforums.com/forum/showtopic.php?tid/194864

This recent thread should be also helpful:

http://www.fmforums.com/forum/showtopic.php?tid/194889/

DT,

You could try this.

Show All Records Go to Record/Request/Page [Last]

// I set a global field with the serial number. (or you can use a variable)

Set Next Serial Value [your serial;00 & global or variable +1]

Commit Records

Hope it helps.

Dean

Edited by Guest

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.