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

Not overwriting value list

Featured Replies

In my database I have a couple of fields that are set as drop-down lists. The values set in these fields are the only values that need to be filled in. Meaning I don't want the user to overwrite these value's unless they are added with the edit item. NO other values should be able to be filled into the field. How can I do this?

Dutchy

Either use a pop-up list instead ( a lot easier ) or enable field validation and do a check using the ValueListItems(fileName ; valueListName) function...

i.e. set this as validation

PatternCount( ¶ & yourField & ¶ ; ¶ & ValueListItems(Get(FileName) ; "yourValueListName") & ¶)

A result greater than 0 (i.e. if your value exists in the list) will make it valid, 0 will make it invalid.

Alex,

Is there any particular reason why you are using a PatternCount to check for validation rather than a validation for 'Member of Value List' ?

  • Author

Thanks, "Member of a value list" was what I was looking for!

Dutchy

I don't normally use this kind of validation so i forgot that it existed? hehehehe. Actually no, the reason being in a Backend front end split your value lists are sometimes in the front end but you can't have a standard file reference to the front end if the front end is a on a client machine - which means you can't directly access the lists... So i don't normally have that choice. But yes i forgot, thanks for that :(

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.