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.

delete value list values using scripts. Possible?

Featured Replies

Hi All,

I am creating an online registration form using FMPro as the backend database. Users are asked to select a date and time from a drop down menu (whose values come directly from a value list within the FMPro database). Whenever a given date and time has reached thirty registrations, that date and time should be removed from the value list, signifying that it is full and no more registrations can be accepted. Therefore, when another user returns to the website, he/she will not see the dates and times that are full.

My question is this: have any of you ever wrote a script to facilitate this kind of action? If so, please feel free to respond. I do have a programming background (VB, Java, C++), so feel free to use programming lingo if need be.

Thanks for reading this. Regards,

Cristy

Hi Cristy,

It sounds like your doing some kind of class registration system. If this is the case, here is an idea. You could use a 'counter' field that keeps a running count of registrations. When it reaches 30, you could have FileMaker generate a "Sorry - Class Full" page back to the user.

Another idea. Create a 'calculated' value list that looks at the 'counter' field to see if is equlas 30. If the 'counter' field equals 30, then use ("") as the value list item.

Hope this helps...

Bob Kundinger

  • Author

Hi Bob,

Thanks for your reply. You've given me some good ideas, but I have a few questions if you don't mind.

How would you go about creating a calculated value list? and where should/could I include the counter field? Is it possible to associate a counter with each item in the value list, perhaps with a conditional relationship of some sort?

Thanks for any insight,

Cristy

Hi Cristy,

It is easier to send you a sample file instead of trying to explain it.

E-mail directly at < [email protected] > and I will send you a sample file.

Thanx,

Bob Kundinger

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.