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
|
One answer
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Jul 24 '20, 1:17 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The "question" is not even a valid question as it lacks a questionmark and is a statement.
The script code is not a valid script as it does not always return a value.
|