Jump to content

make field BG color conditional?


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

Recommended Posts

  • Newbies

Hi all-

Wondering if anyone had a thought on how I could make a field's color change based on evaluating another field.

That is, if Field A is "1" then Field B turns green (in a specific layout). If Field A is "0", do nothing. Can't seem to find a function in either ScriptMaker or in the Calculation functions.

I appreciate any advice.

Link to comment
Share on other sites

Thinks of mergefields showing the char "g" in a considerable fontsize, and use the textformatting functions to change accordingly...--sd

I have used the Arial character "Full Block" U+2588 with good results. It is a pain to resize the field and change font size though, needs a lot of tweaking through trial and error. Example shown below is form a List View layout and uses a calculation field = If(Mod(Get ( RecordNumber );2) > 0; TextColor (g_BG_Character ; RGB (200 ;208 ; 200 ) ); TextColor (g_BG_Character ; RGB (200 ;200 ; 208 ) ))

FullBlock.gif

Link to comment
Share on other sites

This topic is 6959 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.