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.

Checkbox Colour

Featured Replies

Hi there.. is it possible to change the colour of the "X" in a checkbox field? At the moment it is black and I would like the "X" to be a different colour.

 

Cheers

There is no "X" in a checkbox; there's only a box that can be either empty or checked. The color of the box is the same as the field's border (if they didn't change this in v.12).

  • Author

There is no "X" in a checkbox; there's only a box that can be either empty or checked. The color of the box is the same as the field's border (if they didn't change this in v.12).

So in other words no, you can't change the colour of the X!

You can't change the color of the "X" without changing the color of the containing box as well.

 

or

Currently (as of FMP13), both the box and the "X" checkmark are properties in the stylesheet that are not exposed for editing in the Inspector, so you can't alter either of them.  Editing text color only affects the value labels; adding a fill results in filling the entire control (the area enclosing the checkboxes and value labels); and adding a line places a border around the entire control.

 

Your best option, liltbrockie, is to choose a built-in theme that comes closest to the look you want for checkboxes (as well as for scrollbars, tab controls, and a few other elements that are not yet exposed for styling in the Inspector), and work from there, styling the many elements that are exposed.  Hopefully, future FM versions will continue the trend of exposing more elements and properties for direct editing.

 

HTH,

 

Mark

  • Author

Currently (as of FMP13), both the box and the "X" checkmark are properties in the stylesheet that are not exposed for editing in the Inspector, so you can't alter either of them.  Editing text color only affects the value labels; adding a fill results in filling the entire control (the area enclosing the checkboxes and value labels); and adding a line places a border around the entire control.

 

Your best option, liltbrockie, is to choose a built-in theme that comes closest to the look you want for checkboxes (as well as for scrollbars, tab controls, and a few other elements that are not yet exposed for styling in the Inspector), and work from there, styling the many elements that are exposed.  Hopefully, future FM versions will continue the trend of exposing more elements and properties for direct editing.

 

HTH,

 

Mark

 

Yeah sure... OK!

Thanks for your tips......

 

Maybe Filemaker will start using tickboxes as well! (Like most windows applications have been using for the last 20 years)!

Maybe Filemaker will start using tickboxes as well! (Like most windows applications have been using for the last 20 years)!

 

 

Why don't you design your own? Easy to do with some conditionally formatted text or a repeating field formatted as Boolean.

  • Author

Why don't you design your own? Easy to do with some conditionally formatted text or a repeating field formatted as Boolean.

Could do ... I am aware there are workarounds... is there a nice easy way of doing this for a database with about 50 checkboxes spread over 20 layouts though can you recommend?

Yeah sure... OK!

Thanks for your tips......

 

Maybe Filemaker will start using tickboxes as well! (Like most windows applications have been using for the last 20 years)!

 

I presume you mean a classic checkmark "√" instead of an "X."  I agree.  Windows and Mac, alike, have (natively) used checkmarks for years now; the "X" as a checkmark harkens back to the 80s or early 90s.

 

FWIW, FM 12 at least replaced the bitmapped "X" of yore with a vector version for smoother rendering, thus "modernizing" FM (as far as checkboxes go*) from circa 1986 ("The Power of Love") . . . all . . . the . . . way . . . to . . . circa 1991 ("Smells Like Teen Spirit").  Hopefully, in the future they'll bring it right into the 21st Century with a full-on checkmark instead (sounds like feature request time over on FM's feature request page).  (*Mind you, I'm quite enamored with FM 12/13's presentation-layer modernization, so this is just a nit-pick thing, not a major complaint.)

 

Meanwhile, you could, as Comment suggested, design your own, perhaps using it as an image fill for a button, or the like.  But, in the era of FM Go and WebDirect, there's a big advantage to sticking with native FileMaker controls as much as possible.  For me, the new, vector based "X" is sufficiently superior to the old bitmapped version that I've decided to stick with it and resist the temptation to design replacements.  That's just my take.

 

Mark

 is there a nice easy way of doing this for a database with about 50 checkboxes spread over 20 layouts though can you recommend?

 

I am sorry, I am having trouble interpreting your question. Is it even a question - or are you just venting? Or even worse - are you venting at me?

  • Author

I am sorry, I am having trouble interpreting your question. Is it even a question - or are you just venting? Or even worse - are you venting at me?

 

No No! I thank you for your input! I'm not venting.... just genuinely seeking guidance on the best / easiest way to go about changing a load of checkboxes to tick boxes using the methods you alluded to!

Don't worry I shall have a little look and see what I can find!

Well, assuming your checkboxes are using a value list of "1", just format the field as Boolean and set it to display non-zeros as "a", zeros as [empty]. Set the font to Webdings and make the field a button that toggles itself (if you like, you can use a parameter-driven script for that).

 

Once you have it working, you can just duplicate it and change the underlying field.

Method 2:

 

Place a big tick on a layout (again, using the Webdings font) and format it conditionally to disappear (fontsize=500) when not Yourfield. Make it and the associated label a button as above.

  • Author

Thank you!!!!!! I will have a play

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.