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.

Conditional formatting the colour of Radio Buttons

Featured Replies

Hi Everyone, just wondering if it's possible. Here's a screen grab of two radio buttons, and I'd like to have it so that if a button is not checked (ie the button on the right), then its colour is changed to grey, rather than the blue that you can see. I don't think this is possible though?

This is Filemaker Pro 19.6

Thanks for any advice :)

Screenshot 2025-04-30 at 09.57.56.jpg

Screenshot 2025-04-30 at 10.03.24.jpg

Any formats you apply to a field, whether by conditional formatting or by formatting the field itself in Layout mode, are going to be applied uniformly to the entire field, not to individual buttons separately. The most you can do is select different colors for the buttons border and fill (note that only the fill can be modified by conditional formatting).

However, you could achieve the desired effect by simulating a radio button set using buttons or circles or even characters such as ○, ◉ or ◎.

That said, I am puzzled by your formula IsEmpty ( Self ). That will be true only if none of the buttons is selected. Do you have only one item in your value list? If so, you could also use two instances of the same field and hide one of them.

 

Edited by comment

  • Author

Sorry Comment, those are two different fields, I just wanted to show one that is "yes" and another that is "".

I would want to change the colour of the radio button(s) when they are not "yes", which is therefore "".

When "Yes" the have the dot within the line-circle, and I want to change the colour of the line-circle to grey when that particular field is empty.

Apologies for the lack of clarity

You say "note that only the fill can be modified by conditional formatting", and it's the border that I wanted to conditionally format! Oh well 🥹

Thanks

Edited by Slater

I still don't understand what exactly is this about.

Maybe something like the attached could work for you?

 

EDIT:

Added another option:

CustomRadioButton.fmp12

Edited by comment

  • Author

Yes, that's exactly what I want! I've been trying to figure out what it's doing, but I've not been able to. Is it all to do with:
Choose ( Objects::Status ; 1 )

But I don't get how Status makes one layer hide or not (or go on top), can you give me a hint please?!

7 minutes ago, Slater said:

how Status makes one layer hide or not

The top object (the group of 2 blue circles) is set to hide conditionally:

hide.png.c18caef98a10a0bd5d9c1f746a25a695.png

 

Note also the added option using Boolean formatting with the ◉ / ◎ characters, which takes up much less resources.

 

  • Author

Ahh, that makes sense now! Thank you so much Comment 🙌

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.