October 12, 200421 yr Newbies Hi, I'm a newbie here, it's my first (and stupid I guess ) 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
November 15, 200421 yr 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
November 16, 200421 yr 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
November 16, 200421 yr And what about one calc only, repeating...? You may split the field too so that the white background effect disappears. selectedhighlight.zip
November 17, 200421 yr 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. 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
Create an account or sign in to comment