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

how to make a textbox mandatory on "Picker Enumeration list"

I have the below script to make a textbox REQUIRED, if the value=other from a picker enumeration list is "other", but its not working. The custom attribute id is "reason_for_request1" and the literal is "reason_for_request.literal.l12"

dojo.provide("org.example.workitems.providers.ProjReco");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");

(function() {
  var WorkItemAttributes = com.ibm.team.workitem.api.common.WorkItemAttributes;

  dojo.declare("org.example.workitems.providers.ProjReco", null, {
    matches: function(workItem, configuration) {
      var relnote =  workItem.getValue("reason_for_request1");
      return (relnote === "reason_for_request.literal.l12"); // Other
    }
  });
})();

I have similar conditional script working for dropdown enumeration (not multiselect). Does it mean that this conditional script doesn't work with Picker Enumeration?

Please let me know what's wrong with the script...

0 votes

Comments

picker or checkbox enumeration can be multiple values hence you may need to use Array to pick up the value.
you may check with https://jazz.net/library/article/1360 for more details and debugging tips on enumeration list values.


Be the first one to answer this question!

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

Question asked: May 28 '15, 8:58 p.m.

Question was seen: 2,289 times

Last updated: May 29 '15, 2:58 a.m.

Confirmation Cancel Confirm