Conditional Background Colour

Hey, I’ve just been looking at appgyver’s new updates since being gone for a few months. So I’m definitely missing something with how these new style things work.

I have a container which requires a conditional background colour. The old way i’d just turn the background color under styles tab into a formula but with all these new theme thingys I can’t seem to find it.

I’ve read the documentation and watched the videos where I’ve tried using the style component, creating a new theme variable, adding a custom content palette etc.

I just want to do this: IF [insert condition] is true → [use this colour] else → [use this colour]

Thanks.

its a bit funny how i made the video but still its better than words.
Hope it helps.

2 Likes

Hello. I’m looking to do this as well. I have a list of approximately 16 variables and I want each one to change the background color depending on which variable is selected on the previous page. I think I’m looking for a formula to put as the color but cannot find what that should be. Can anyone help?

The way i would do that, is by creating a page var of a list of objects containing a color code and a value, that list should then be connected in the first page and then when the user picks one option you should get the color code with a lookup function and pass in to the next page using a page parameter. then you can use that color code and set the color of background.

Thanks for getting back to me so quickly. I literally asked this question 9 hours ago. I see how that logic might work. I will give it a try. Thanks.

Sincerely:

Jennifer
Graphic Design
graphics@extremeimprint.com

Extreme Imprints Inc.
813 Main Street
Toms River NJ 08753

PLEASE LET ME KNOW THAT YOU HAVE READ THIS EMAIL. THANK YOU.

1 Like

I’m very impressed with the appgyver team. Thanks again for your super quick response. :slight_smile:

Sincerely:

Jennifer
Graphic Design
graphics@extremeimprint.com

Extreme Imprints Inc.
813 Main Street
Toms River NJ 08753

PLEASE LET ME KNOW THAT YOU HAVE READ THIS EMAIL. THANK YOU.

Hahah, im not in the appgyver team (even though I would like to😋 )

But anyway, im happy I helped you!

1 Like

Feel free to send a freeform application to harri.sarsa@sap.com :smile: we are looking to grow our User Assistance team :wink:

1 Like

Thats so cool to hear ! lets see how i can help appgyver community!

2 Likes

You sir are a genius. I have been cussing this for 3 days!!

1 Like

That’s cool to know. I sent him an email too. Thanks!

1 Like

And I did send an email as well. Hopefully AG can build a great Support Team from the applicants.

1 Like