Jump to content

Conditional formatting the colour of Radio Buttons


Recommended Posts

Posted

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

Posted (edited)

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
Posted (edited)

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
Posted

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?!

Posted
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.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.