12c Webcenter Capture Metadata fields
Hi,
In 12c web center capture, we've a requirement as, If a metadata field has value then
all other remaining fields should not be editable.
for example, I'm having Empid field, if this contains a value then all other fields values should not be editable.
In the Client Script , i made like this
function DocumentSelected(event) {
var currentDocument = documents;
var captureFields = [];
var batch= documents.getParentBatch();
print("BatchName------>"+batch);
// Create an array of the document's fields
var fieldDefs = batch.getWorkspace().getFieldDefinitions();
var employeeid=fieldDefs.findByName("Empid").getId();
print ("Empid" +Empid);
EMPLID1=Empid.value;
for (var fieldIdx = 0; fieldIdx < fieldsToCopy.length; fieldIdx++) {
var fieldID = fieldDefs.findByName(fieldsToCopy[fieldIdx]).getId();