We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4447502 commit a4074afCopy full SHA for a4074af
js/util.js
@@ -37,7 +37,9 @@ export function extractDocumentFields(result) {
37
38
return {
39
text: `${baseYear}${year}-${result.getFieldValue(monthField)}-${result.getFieldValue(dayField)}`,
40
- status: [yearField, monthField, dayField].every((field) => result.getFieldValidationStatus(field))
+ status: [yearField, monthField, dayField].every(
41
+ (field) => result.getFieldValidationStatus(field) === Dynamsoft.DCP.EnumValidationStatus.VS_SUCCEEDED
42
+ )
43
? Dynamsoft.DCP.EnumValidationStatus.VS_SUCCEEDED
44
: Dynamsoft.DCP.EnumValidationStatus.VS_FAILED,
45
};
0 commit comments