


Hello,
I have the following form data model get service within my submit button. On pressing submit, there is no issue populating the "statusId" field in the output. However, I want to directly store the output value into a variable declared in the submit button, rather than be stored in the "statusId" field. This way, the value will persist in the variable and can be continuously used within the submit button script. I would appreciate any help on this. Thank you
var operationInfo = {
"formDataModelId": "/content/dam/formsanddocuments-fdm/x/yy/zzz/test-name",
"operationTitle": "getStatusID",
"operationName": "getStatusID"
};
var inputs = {
"SubmissionType" : submissionType,
"Name" : preparerName,
"Year" : currentYear
};
var outputs = {
"StatusID" : statusID
};
guidelib.dataIntegrationUtils.executeOperation(operationInfo, inputs, outputs, null, null, this);
For example:
var newStatusId;
var operationInfo = {
"formDataModelId": "/content/dam/formsanddocuments-fdm/x/yy/zzz/test-name",
"operationTitle": "getStatusID",
"operationName": "getStatusID"
};
var inputs = {
"SubmissionType" : submissionType,
"Name" : preparerName,
"Year" : currentYear
};
var outputs = {
"StatusID" : newStatusId
};
guidelib.dataIntegrationUtils.executeOperation(operationInfo, inputs, outputs, null, null, this);
The returned value should be stored in the newStatusId variable
Solved! Go to Solution.
Views
Replies
Total Likes
I was able to resolve my problem. See Step 3 #6 in the following link:
I was able to resolve my problem. See Step 3 #6 in the following link: