Greyed Out Value for a ListItem

Topics: Developer Forum
Nov 13, 2013 at 7:25 PM
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?
Nov 22, 2013 at 3: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 12: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:

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