Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to grey non-selected choices in a list ?

Featured Replies

  • Newbies

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...
  • Author
  • Newbies

One month elapsed and no answer...

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

  • Author
  • Newbies

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

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

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.