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

Question

Question

how to get Validate if file are upload before to move to the next pagination page

asked on December 5, 2022 Show version history

Hi, I am trying to use this code

 $("#form1").change(validate1);
  validate1();
  $('.cf-next-btn').click(validate1);
  $('.cf-prev-btn').click(validate1);

    function validate1() {
    if ($("#form1").parsley({
        excluded: ":hidden"
      }).isValid()) {     
        $('.cf-next-btn').removeAttr('disabled');      
    } else {
      $('.cf-next-btn').attr('disabled', true);
    }
  }

but if failed to validate require Upload field.

the next button appear and at the end, when press submit, it submit the forms even if the upload required fields is empty.

 

do someone can help to figure out why this behavior happen

0 0

Answer

SELECTED ANSWER
replied on December 7, 2022

The code found in this post from 2020 does exactly what you need:

https://answers.laserfiche.com/questions/174927/Forms-PagebyPage-Validation

 

1 0

Replies

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

Sign in to reply to this post.