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.

Featured Replies

Is there a way to have the OnRecordCommit script trigger run only once?

What i am trying to accomplish is when a new record is added, i would like to copy the phone number field to the PID field and the name field to the SID field.

I was planning on using the OnRecordCommit script trigger but i only want this script to happen when the record is created, not everytime a save is changed.

If someone where to change the name or the phone number of the record, i dont want it to update the PID or SID. Is there a way to have this script run ONLY when a new record is created?

Thanks

Just use a if then test to see if the field is empty or not. If it's empty the copy the field, and if not empty then don't copy the field.

Hope this helps

  • Author

I knew it had to be something simple, guess i havent had enough coffee yet this morning. Thanks!

  • 1 month later...

You can probably use get(Openrecordstate) and check to see if it is a new record.

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.