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.

Change background color of a field?

Featured Replies

Hi all, I've been searching but can't find any tips on this.

I want to do a file for booking conferencerooms, and my idea is to have a matrix where the rows are each room and the columns are dates. The matrix should consist of the rooms and, say, 7 days including the start date.

When I want to check the availability I should enter a date in a search field and the "availability-matrix" will be filled in with info about each conferenceroom.

Heres the snag; I want the corresponding field to be green if the conferenceroom is available and red if it is not available, all depending on if there is a reservation done in the "reservations"-table.

Is there a way to change the background color of a field in a script?

Regards

/U

Like this? See attachment.

Color.zip

  • Author

Exactly like that, thanks a million!

Think about the hours that I've been trying to find a solution when I could have got the answer on this forum within an hour.

/Ulf

Only thing thoug is that it isn't particular network friendly, globals are stored locally and the data in the base is located at serverside ...the fact that it's a graphical objects doesn't help either. The same thing could be said about graduations (eyecandy) in your layouts ...you could be tempted to do it in Photoshop or similar. But to filemaker is it much faster to recieve the message over network "draw a line from here to there" eventhough the candy perhaps is build up by lots of lines.

This tip might not seem faster to render, but is much more network savy:

Use the char "g" or rather a sting of "g"'s and make a mergefield to show it inside the frame of the field.

Why do I choose this particular char, because it's in the font webding makes a solid bar sans kerning out of a string of the char.

Under FM7 would I use the Textformatting functions, but in previous versions would I have made a unbroken string of calcfields, where each part in the mergefield sequence recieves a different colour.

Now a tip about mergefields is that only the type/style/textcolour from the first "<" char of each merge field is needed ...this is important when moving around with webdings ...to avoid to get confused by sequences of pictograms.

--sd

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.