You are viewing limited content. For full access, please sign in.

Question

Question

Able to submit forms without uploading file to required file upload

asked on November 5, 2018

Hello,

As part of a customer's HR onboarding process, we have a form built to accept job applications. Part of it includes uploading a resume and/or cover letter. We have the file upload field required, yet they sometimes receive applications that don't have a document uploaded to the form. 
 

When we view the submitted instance, we don't see anything that would indicate that anything was uploaded - no variable, no attachment listed in the image of the form. I can't seem to replicate the issue with Chrome, Firefox, or Edge. Any thoughts? This is occurring in Forms version 10.2.1.246.

 

Thanks!

1 0

Replies

replied on July 14, 2019

For us, I found it to be a bug in Safari not checking the required attribute for this field.  My solution was to add a checkbox below for the user to verify if a file was attached.  When they click it I check the upload field, VerifyFileAttached, for how many files are attached.  If it is how many files I anticipate, I leave the box checked and display the submit button.  If the number of files isn't what I'm looking for then I uncheck the box and hide the submit button.  See code below:

      $('.VerifyFileAttached input').change(function(){
        var fileAttch = document.querySelectorAll('.file').length;
          if ($(this).prop('checked') && fileAttch == 1){
          $('.Submit').show();
          }
          else{
          if (fileAttch == 0){
            alert("Please upload a file to continue");
          }
          $('.Submit').hide();
          $('#Field81-0').prop('checked', false);
          }
      }); 

1 0
replied on July 14, 2019

This is helpful. Thanks! 

0 0
replied on December 10, 2018

I'm having this problem as well with our Proof of Residency process.  It allows the user to move forward without a file upload but the next user task gets stuck without one.  They can't decline the form without code to remove the requirement.

0 0
replied on July 10, 2019

Hello,

We have the same issue here. Does one of you manage to find a way to fix it or a trick to make sure the files are uploaded ?

Thanks

 

0 0
replied on March 3, 2020

Hello,

Follow up on this subject. We are using Chrome.

User can submit form without required attached files. I would have thought that it would be cover by the front end validation.

Some fields are under hide/show rules and others are always displayed.

I had to choose No validation for Backend validation to make the form working.

LF team, is that something that will be cover with Laserfiche 10.4.2 ?

https://answers.laserfiche.com/questions/160314/Not-able-to-submit-form-because-of-the-Required-Fields-in-hidden-Pages#

Thanks

Veronique

 

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.