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.

Can script check duplicate in a layout

Featured Replies

Dear All,

I have a field text and a field number, when people enter record , I don't want people enter the same text and number. If they do , show a message right away.

let's say ..first record Field A = A Field Num = 9

second record ...Field A = A and Field Num = 9.

How can the message show right away so that they have to change different text or number? ...IS there a way to check people?

Can you guys help me out of this?

Thanks a bunch.

Hi, Ahn:

This isn't a script, but when in "Define Fields" for either text or number fields, you can go to the "Options/Validation" tab and select the "Unique" checkbox. This should prevent people from entering duplicate values. Hope this helps.

Regards,

Philip Sommers

What if Tranh wants to either have A or 9 entered two times, but not the combination of both.

Here is the method I use to control duplicates in my contact db.

I use a script with a calculation for FirstName&LastName and a selfrelationship based on ContactsFile:cFirstName&LastName::FileA:FirstName&LastName with script :

If valid (relationship)

Show message "This contact seems to exist. Would you like to check if it isn't a duplicate".

If Status(Message) = 1

Go to related records

End if

continue script...

But I would really appreciate an easier method if it exists.

  • Author

Thanks All,

I found the solution already ...use the self-join and create a calculation field to count the self-join.. count(selfjoin:field) > 1, wrong, false

Thanks All

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.