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.

Clear field automatically when closing the FMP database

Featured Replies

Hi all,

How to write a script that can clear a field in all records when users close the FMP5?

The obvious question is "why do you want to do this?". Kind of sounds like a "how do I drive in a screw with a hammer?" question wink.gif" border="0. The answer is to use a shutdown script and a replace statement, but there is probably another way to structure the whole process. -bd

  • Author

Hi LiveOak,

I forgot to mention that the FMP5 database was located in our server and all users are accessing it from LAN as a guest. So, does the shutdown script can do what i want? Because the host will never be closed.

Quick thought, Not if any of the fields are global fields, as only the host entries are saved. I'll ponder on any other consequences.

  • Author

OH ~

I have done a test in a text field and it work fine as what i want.

I have used the following shutdown script:

Enter Find Mode

Set Field [ fieldA "testing"]

Perform Find

Go to RecordiRequestiPage[First]

Loop

Clear [ fieldA ][select entire contents]

Go to RecordiRequestiPage[Next, Exit after last]

End Loop

-------------------------------------

However, the actual field i need to perform Find is a radio button but not text field. How to do the step "set field" ??

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.