Read only field after entering the value.
Hello,
I am trying to make the field read only after one time fill. I have written below script for this but it not working fine. after this script the field will get read only itself. not able to add any value in that field.
dojo.provide("com.ibm.Condition.StartDateBA");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
dojo.declare("com.ibm.Condition.StartDateBA", null, {
matches: function(workItem, configuration)
{
var workitem = com.ibm.team.workitem.api.common.WorkItemAttributes;
var StartDateBtoA=workItem.getValue("com.smit.manageProjectList.workitem.SMIT_Projects.attribute.StartDateBtoA");
if(StartDateBtoA !==""){
return true; // Nothing to do
}
}
});
})();
Thank you,
Kirti
9156951041