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.

Script-Price-Larger Than Zero

Featured Replies

Dear FileMaker Gurus:

There is a FileMaker v.6 DB on Server v.5.5.

Each Book, for sale, has 3 statuses: Active, Freebie and "Out Of Print."

I want to write a script for the "Status" field: if the status is "active," then the price must be "larger than" "$0.00."

Help please!

Happy New Year! Everyone!

Max NY

Well you could script a find so that you set the two fields to the criteria that you want.

Enter Find Mode []

Set Field ["Status", "active"]

Set Field ["Price", "> 0"]

Perform Find [Replace Found Set]

  • Author

Dear John:

Thanks for you reply!

What I am looking for, actually is:

If the "Status" of a book is listed as "Active," no one is allowed to enter "$0.00" into Price Field. The price figure must be greater than "$0.00."

regards,

Max NY

On then in your Price field definition, validate by calculation.

Case ( Status="Active"; Price > 0 )

  • Author

Thanks for reply!

Should the ";" in the validation, be "," instead?!

regards,

Max NY

Yes indeed. I forgot that the problem was on FM6. I just read your profile and assumed that it was on 7. So use the comma instead.

  • Author

Thaaaaanks! Vodka!

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.