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

Question

Question

Save for Later (Draft) Even with an Invalid input Error

asked on July 1, 2020

I have created a SAVE FOR LATER button:

I have it removing required fields so the form will save without all required fields filled in. It creates a new task to the same user.

//When saving for later, removing required fields
  $('.Reject').click(function() {    
    $('*[required]').each(function() { 
      $(this).removeClass('required')
      $(this).removeAttr('required');
  }); 
});

Here's my issue ... I do have some field validations. In the example below, if there is an Invalid input, it won't let me save the form:

How do I get around that?

0 0

Replies

replied on July 1, 2020

You might be better served using the built-in Save Draft option. It can be set on user tasks in addition to the starting point.

1 0
replied on July 2, 2020

In addition to this Gloria, if you use remove the required fields with JavaScript, it will likely throw an error on submission from Forms' backend validation if one of the fields is blank.

0 0
replied on July 6, 2020

Didn't realize this option now existed. Not sure I can go back and change all my processes. Thank you for letting me know about this.

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

Sign in to reply to this post.