Can I make attribute readonly in current state after clicking on save button?
Hello All,
Let me explain scenario first, I have Enumeration with Yes, No, Unassigned values. I used applied this enumeration values to radio button attribute. now If in some particular state user selected radio button option(Any option from above Enumeration) then if user selected values between Yes or No and then click on save button once he/she click on save button attribute should become readonly in current state.
Is it possible to achieve this using any script, followup action, or any out of box solution.
If it is possible using follow up action then what will be the logic to make attribute read only in current state.
Thanks in Advance.
Accepted answer
Unfortunately the description is not very clear, however the basic mechanisms available are advisors/pre-conditoons Read-only by type and state and read-only for condition where you can provide a JavaScript or Java Condition. You can
only make attributes read only (some stuff like comments are not attributes).
You can write a precondition that prevents saving of a work item for certain conditions, but you can not make the attribute presentation read only, so the user can enter values and will only be blocked when trying to save.
There are no other mechanisms available that make things "read only".