Custom required attributes
Hi,
Trying to write a custom attribute condition script to force a comment to get entered when a user selects a certain
option from a radio group e.g no.
dojo.provide("storagereq");
(function() {
dojo.declare("storagereq", null, {
getValue: function(attribute, workItem, configuration) {
var storreq = workItem.getLabel("storagerequests");
return (storreq !== "No");
}
});
})();
(function() {
dojo.declare("storagereq", null, {
getValue: function(attribute, workItem, configuration) {
var storreq = workItem.getLabel("storagerequests");
return (storreq !== "No");
}
});
})();
also added the "required attribute for condition" in operation behaviors section and associated with relevant comment attribute.
Can you advise on what im doing wrong with script.
thanks