Slater Posted Wednesday at 09:04 AM Posted Wednesday at 09:04 AM 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
comment Posted Wednesday at 12:09 PM Posted Wednesday at 12:09 PM (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 Wednesday at 12:34 PM by comment
Slater Posted Wednesday at 12:55 PM Author Posted Wednesday at 12:55 PM (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 Wednesday at 01:10 PM by Slater
comment Posted Wednesday at 02:16 PM Posted Wednesday at 02:16 PM (edited) 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 Wednesday at 02:29 PM by comment
Slater Posted Wednesday at 02:34 PM Author Posted Wednesday at 02:34 PM 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?!
comment Posted Wednesday at 02:48 PM Posted Wednesday at 02:48 PM 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: Note also the added option using Boolean formatting with the ◉ / ◎ characters, which takes up much less resources.
Slater Posted Wednesday at 04:57 PM Author Posted Wednesday at 04:57 PM Ahh, that makes sense now! Thank you so much Comment 🙌
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now