Greyed Out Value for a ListItem

Topics: Developer Forum
Nov 13, 2013 at 8:25 PM

I would like to implement in webaccess the ability to grey out a value for a ListItem based on certain conditions such that greyed out values are not selectable.(They are viewable and may have help text on hover to explain to user why it is greyed out, but not selectable)

I thought I would be able to have the javascript manipulate the workitem xml <ListItem> attributes to do this, but there are no attributes that would enable or disable the value. I could have the js delete the listItem altogether, but then the user would be confused as to why he has an incomplete set of options.

Can I create an attribute for <ListItem> or is there a better way?
Nov 22, 2013 at 4:30 AM
Hi tconnors,

I don't think manipulating the xml definition of the workitem will get you very far since the html for the workitem has already been rendered.

Have you tought about creating a custom control instead? That would allow you adapt the presentation for the list.
Nov 22, 2013 at 1:28 PM
Hi again,

Something else came to my mind after a good night sleep. :0)

If you have access to the workitem definition you could also use <WHEN> clauses to tweak the available choices based on other fields: