Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link
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.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Jul 24 '20, 9:50 a.m.

Question was seen: 1,262 times

Last updated: Jul 24 '20, 1:17 p.m.

Confirmation Cancel Confirm