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.

greyed-out buttons

Featured Replies

  • Newbies

Please can someone tell me how to make a button appear greyed-out and un-pressable? I've come across it in a stand-alone database (from Developer), but I can't access the code.

The idea would be to make a button "live" only when certain fields have been filled in. Can it be done without a plug-in? If not, what plug-in would I need?

If I could trigger a layout from a field, I guess I could do it that way. But how?

Hi Colm, try adding some steps at the beginning of your script:

----------

If ( IsEmpty ( RequiredField1 ) or IsEmpty ( RequiredField2 ) )

Show Message ( "You must fill in all fields" )

Exit Script

End If

----------

If you want the greyed-out look, you can create two calc fields which perform all the validation tests on your required fields. One field, ShowButton, evaluates to "Button Name" if all conditions are met, the other, NoShowButton, evaluates to "Button Name" if conditions are NOT met. Remove the text label from your button, and put these two new fields right over the button. Make ShowButton black text and NoShowButton grey text. You now have a greyed-out button with one peculiarity, that you can still "press" the button (that is, see the button action on the screen).

HTH

Jerry

A couple other methods:

Use a duplicate layout with greyed out buttons with buttons disabled. This works well if you have many buttons that are either all available or all unavailable based on some criteria.

Put your buttons in global container fields, then put container calc fields on the layout. If( Criteria, ButtonGraphicOn, ButtonGraphicOff ).

Another method uses portals to contain the buttons when the relationship is valid the buttons show and are active. When the relationship fails the buttons diasappear and are inactive.

See the attached file for details.

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.