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

Question

Question

Saving incomplete forms that aren't starting forms

asked on June 2, 2014

Use case: we have several forms that are part of one process. Each form has many required fields, some of which the user doesn't have the information for right away. At each stage, we want to allow the user to save an incomplete form to be completed later.

 

Since the checkbox to save for later doesn't appear on anything but the starting form, we need a different way to save incomplete forms. That means all required fields have to be marked as not required and our process has to account for each required field.

 

Or is this functionality already there and I'm missing something in the setup?

 

Thanks!

0 0

Replies

replied on June 2, 2014

We built the functionality using the Process. See below:

We have a checkbox field on the bottom of the form that asks if they want to save it. In the process the "Save for Later?" gateway looks to see if that value is set to yes or not. If it is, then it assigns the form to the initiator. That will then allow it to show up as a task for that user.

 

To have the required fields not required, you can use JavaScript like the following to accomplish this.

//make required fields not required if save later box is checked
  $('.saveform input').change(function () {
  if ($(this).is(':checked')) {
    $('span.cf-required').remove();
 $('.req input').removeClass('required').removeAttr('required');
    
  } else {
    $('.req label').append('<span class="cf-required">*</span>');
    $('.req input').attr('required', 'True');
  }
  });
  //end make required fields not required if save later box is checked

I did not come up with all of this by myself and give credit to those that have helped me.

0 0
replied on August 25, 2015

Hi Blake! I am trying to use your solution for this same issue.

 

I have been able to get the business process piece to work, but I haven't been able to get the javascript you posted to work. What I am missing? 

If I can get this working I just solved one of the biggest issues with my process...!

 

0 0
replied on August 27, 2015

Nevermind I figured it out thanks!

0 0
replied on October 16, 2015

Issue I am running into, when the user is working on a saved form and is ready to submit, they uncheck "save for later" and this is happening to all checkbox and radio button fields:

 

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

Sign in to reply to this post.