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

Featured Replies

I have a calculation field "deleteButton" that always returns the value "delete". When it's okay to delete a record (according to a set of rules) the value appears in the color assigned to the field. But when it's not okay to delete a record, the value appears in a "grayed out" color.

How can I have my Delete script check the color of the value in that field?

I suppose that's possible, but I suspect it would be much simpler to check the same set of rules that the calculation field does.

  • Author

Hi Michael,

Nice custom function. It does exactly what I want (once I figured out that the :paragraph: at the end was tripping me up in the calc in my script)

...but I suspect it would be much simpler to check the same set of rules that the calculation field does.

But then if the rules change I'd have to update them in 2 places.

Attached is a sample of what I want, utilizing your CF to do so. Can you think of a better way to accomplish what I'd like to do? I'm certainly open to suggestions.

Thanks for your help!

RGB_Test.fp7.zip

But then if the rules change I'd have to update them in 2 places.

True, but now if you want to change the colors, you need to update the script - which is much less obvious.

How about something else?

RGB_Test.fp7.zip

  • Author

Very nice!!

It took me a while to figure it out. I'd never paid much attention to "Format As Boolean" in the Number Format dialog before. This is a great technique.

Many thanks, Michael!

  • Author

:qwery: Now if there were just a way to define mouse-over behavior at the script level (beyond Button Setup dialog)...

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.