Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4805 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hi all,

I have a fairly simple database where I need to change the colour of a layout item based whether or not the expiry date is less than today's date. Basically the layout is designed like a simple card and I just want to turn the card red if the it's expired and needs renewing. So my question is, is it possible to change the colour of layout items (a simple rectangular box in this case) based on this calculation. I have no problem with setting up the script for this, I'm just not sure whether I can change the colour of a layout item based on it.

Many thanks for any help

Cheers

Kevin

Posted

Use conditional formatting on the "card" (your expiry date field) with a calc something like:

Expiry date < Get(CurrentDate)

and with the colour red as the result

Posted

is it possible to change the colour of layout items (a simple rectangular box in this case) based on this calculation.

Some layout objects - not all - can be formatted conditionally. A rectangle is not one of these, but you can use a text object (with only a space as the text) instead.

Posted

Buttons are great for conditional formatting, this way you dont need any dummy fields - they can even have rounded corners :)

Only minus is a minimum height of 5 px, ( font size = 1 )

This topic is 4805 days old. Please don't post here. Open a new topic instead.

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.