# 13.11.2013 12:25:25 -08:00
Hi,

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?
# 21.11.2013 20:30:51 -08:00
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.
# 22.11.2013 5:28:43 -08:00
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:

http://msdn.microsoft.com/en-us/library/vstudio/ms194966.aspx