0

I would like to to save InfoPath form as draft with required field before submitting the form. It should save as the form as draft when user clicks on Save button.

How can I achieve this functionality?

  • Do you mean that you want to be able to submit the form with a required field not filled out? I'm having trouble understanding what is meant by "save as draft" - does the form submit to a form library? – hilary Jun 22 '15 at 23:16
  • hilary trying to submit the form with a required field not filled out? – Akshay Dattatray Nangare Jun 23 '15 at 5:19
1

You could use versioning in the Sharepoint list/library, an then publish a major version from the draft.

0

Instead of setting the field as required, add a custom validation rule. Add a field to your form (doesn't need to be displayed on the form) called "Status" (for example, name it however you like) and default it to Draft.

Change your submit button to use rules and set the new status field to "Submitted" prior to submitting the form.

In your custom validation rule on the field you want to require, have the condition be if the field is blank and status is not equal to "Draft".

Effectively, the idea is that the field can be blank and valid when the "Save" button is clicked (which submits your form to your SharePoint library without changing the status from Draft) but once the "Submit" button is clicked and the status changes to "Submitted" the custom validation will run and prevent the form from submitting with the field blank.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.