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.

Featured Replies

Hi all

How can I get my calculated Base64Decode container field to display some centralised (vertically and horiztonally) text, and have the entire background a certain colour?

Thanks

I don't get this. The Base64Decode() function decodes data encoded in Base64. The data can be either text or a file. If it's text, then you can use a Text field (or a calculation field with a Text result) to display it like any other text (including formatting). If it's a file, then you have no control over its content; if it's an image file, you can display it - but you can only display it as it is (although you can control the image size and its alignment within the container).

 

Edited by comment

  • Author

Ah I must be a bit confused. Basically I have a photo container field that pertains to each user. If the user doesn't have a photo then the I want their initials displayed instead. I've so far achieved this by creating a calculation field with the following calc:

If ( IsEmpty ( photo ) ;
Left ( Forename ; 1) & Left ( Surname ; 1 )
; photo )

This works great, and I can add colour to the background by specifying it as the fill of field object in the layout. However I end up getting bits of that colour around the outside of the field if it is populated with a photo. Also it would be nice to be able to specify different colours for each user. So I was wondering if I could bring those extra formatting features to the calculation field.

Thanks!

2 hours ago, sal88 said:

However I end up getting bits of that colour around the outside of the field if it is populated with a photo.

Two possible solutions:

1. Set all padding values to 0 and format the field to reduce/enlarge the image to fit. Of course, this can only work if you also deselect "Maintain original proportions" and make sure all photos have the same width-to-height ratio;

2. Make the field transparent and format it conditionally to have a fill color when IsEmpty ( photo ). This will also allow you to add more conditions - and more colors - so that each group of users can have its own color.

  • Author

Thanks comment!

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.