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.

ow to make a button's appearance conditional

Featured Replies

Looking to display 'Next Record' Button, only when there is a next record to display in the set. Any ideas on how to make a button's appearance conditional without switching layouts?

Two ways:

1. Create a graphic for the button and paste it into a global container field. Then create an unstored calculated field equal to Case( not Get(RecordNumber) = Get(FoundCount), gContainerField ). Put this calculated field on the layout and format the graphic to display as desired. In the script attached to the button, first test that the field is empty.

2. Create an unstored field equal to not Get(RecordNumber) = Get(FoundCount). Then create a relationship from this field to a constant number calculation field equal to 1. Put a portal on your layout, using this relationship, with no border and displaying only one row. Then put your button into the portal and make sure it doesn't overlap its borders.

Well, here is what I would do... Create two calculations (number):

Get ( RecordNumber ) < Get ( FoundCount ) set as unstored

1 this calculation could be called kOne (for Key 1)

Create a second table occurance of your main table. Join the first calculation to kOne using =

Place a portal on your layout based upon the second TO. Create your button and attach your script then drag it into the portal. Your Next Record button will only appear when you are viewing all but your last record - or your last record in a found set.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.