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.

Calc to conditionally display image in container

Featured Replies

In a portal, I want to have an icon display only if there's a related record for that portal row. (i.e. the last row won't have an icon)

I set up a global container field with the icon in it ("iconfield"). This is in the relation that shows in the portal.

I set up a calculation field that tests for the primary key of the relation:

If ( IsEmpty ( kp_key );""; iconfield )

This is also in the relation that shows in the portal.

I know the logic is right, because this works as expected:

If (IsEmpty(kp_key);"empty";"full")

I know the icon is there, because if I simply put the iconfield in the layout, it shows up.

But using my calculation, where the icon should be, I get 0 (zero) which seems to me to say that the calculation is getting a "false" result. So I'm handling the container wrong.

Any help?

Is the result of your calculation field set to type Container?

  • Author

You, sir or madam, are a gentleman or lady and a scholar.

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.