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

How to grey non-selected choices in a list ?


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

Recommended Posts

  • Newbies
Posted

Hi, I'm a newbie here, it's my first (and stupid I guess blush.gif) post...

I have a list with names, the user must check the checkboxe(s) near these names.

What's the simplyer way to grey out the non-selected names and checkboxes after the user leaves this field ?

Thanks for your help wink.gif

GreyedCheckBoxes.jpg

  • 1 month later...
Posted

Hmmm... sorry, we're usually a lot more prompt than that! This is actually not that difficult.

Let's say your choices in the checkbox are Apple, Banana, Clementine. You would want to make three new calc (text, unstored) fields: appleIsNotSelected, bananaIsNotSelected, and clementineIsNotSelected. The calc for appleIsNotSelected: ( Case ( PatternCount ( theFieldName , "Apple" ) = 0 , "Apple" ) )

Now, whenever Apple is not selected as a choice, the value of this field will be "Apple." Add appleIsNotSelected to your layout, make the text grey, and place it over top of the checkbox so that it obscures the choice for Apple. When a user clicks into the checkbox field or any other field, the calc fields will all go to the background, thus making all text black; i think this is a good side effect, but you may have a different opinion. In any case, i can't think of a way to avoid that.

HTH,

Jerry

  • Newbies
Posted

Hi Jerry,

It was a little bit hard for me to understand the code first but it works fine now !

This is exactly what I want.

Many thanks for your precious help.

Etienne of Brussels

Posted

Please don't change your Subject line, even if we have missed your post.

Just put something in your first line of a "reply" to let us know you are still waiting for an answer. I'm sure a opening line such as "Too difficult for you ?" would have been effective. wink.gif

You sure are patient. If it had been me, I would have been back in 24 to 48 hours asking if I had stumped the Experts.

Lee

cool.gif

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