How to change popup button style, depending on container values?

I've just inserted popover buttons into my Contact Management file, and have a set of checkboxes inside the popup panel.

Is there a way to create a visual effect with the popup button if any of the checkboxes inside the popup panel have been checked?

If so, what are the steps for setting this up?

Thanks!

Conditional formatting does the trick.

2 Likes

Thanks, @bdbd for the conditional formatting suggestions.

I've checked out various forums and online instructions for setting up conditional formatting, and tried my hand at it a bit, but haven't yet figured it out.

As I understand it, I should: go to layout mode, select the popover button -- which, when double-clicked, produced the panel containing the field with checkboxes -- then select "Conditional Formatting" (for the popover button), and click "Add" to create a new formula.

It seems I could either include a formula here or click "Specify..." to include a more complex formula.

As I said, I just want to change the popover button whenever any checkbox has been checked for the checkboxes in the popover panel containing the field with checkboxes.

Based on that, what formula would one suggest for this?

Many thanks!

Single click the popover button. It is the object for which you wish to apply conditional formatting.

Conditional formatting requires you create a condition to apply a formatting. Your condition is the calculation you specify in the conditional formatting panel. It must return True (anything but 0 (zero), False or empty) for the formatting to apply.

The formatting applies to the text of the object. You decide what formatting to apply.

The help text for conditional formatting is here.

Hope this helps.

1 Like

Done.

Thanks. I've tried to glean what I can from the link you provided (I read through it earlier), though I found the instructions limited -- and didn't see anything that relates to checkboxes.

Anyway, I did add a formula, for "Condition" set Formula is, then added "True." That didn't work. So then I clicked "Specify...", selected the Value List associated with the checkbox and then wrote "true" next to it.

It didn't work, and it seems like I have to figure out how to put together a more complex formula for the conditional formatting to work.

Any other suggestions?

Thanks.

I want you to learn so I want you to do the troubleshooting. The solution is simple. Let me just add this: you put a field in the popover, not a set of checkboxes.

2 Likes

popover.fmp12.zip (85.2 KB)
Here's a sample of it in action that you can pick apart and see how the conditional format formulas work.

Also, if you're trying to change the icons, not the color you actually need two copies of the buttons and you hide them so only one appears at a time.

Any chance that Your layouts are 'classic' (not one of the newer themes)? There are some limitations with 'classic' (one should get rid of classic, not just because of formatting..)

Thanks all. Got the answer from a helpful user on the other Filemaker forum.

The formula is: not IsEmpty(your_table::your_checklist_field)

Wouldn't have figured it out without his help...