@piserve-tech/form-submission 1.3.313 → 1.3.314
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10979,7 +10979,7 @@ class SubmitFormComponent {
|
|
|
10979
10979
|
const show = element.show;
|
|
10980
10980
|
if (element.element.formElement.elementType === 'FILE_PICKER') {
|
|
10981
10981
|
const attachment = element.element.attachments;
|
|
10982
|
-
if (required) {
|
|
10982
|
+
if (required && show) {
|
|
10983
10983
|
if ((!answer || answer?.length === 0) &&
|
|
10984
10984
|
(!attachment || attachment?.length == 0)) {
|
|
10985
10985
|
this.inValidQuestions.set(element.element.id, 'Required file question has no files uploaded.');
|