I added new work item to tfs. for example work item type: cab, states: new, active, closed.
I added field and form element to form layout. for example customer note (type: string)
added readonly field rule on active state in process template workflow.
But it is hidden when I did'nt input text with change new to active.
why? I want to visible my field even so I did not input data.
how can I do?
thanks
Here's the rules on ReadOnly fields for VS 2012 going forward. Note that this was NOT the behavior for VS 2010 and before. This is unfortunately undocumented and IMHO counter-intuitive.
For example, the PBI work item has a condition that when it goes into the “Done” state, it makes both the “Business Value” and Effort field go ReadOnly as shown in the XML below from its Work Item Type Definition (WITD):
This forum post speaks to the behavior somewhat as well. Also, when you use the “EMPTY” attribute on a work item field, it will disappear from the form and wouldn’t you know it, “EMPTY” is a combo of “READONLY” and emptying out the field. So it all makes sense, kinda, in the end. :)
<FORM> <Layout HideReadOnlyEmptyFields="false"> ...
<WebLayout ShowEmptyReadOnlyFields="true"> ...