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?

2
  • 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
    Commented Jun 22, 2015 at 23:16
  • hilary trying to submit the form with a required field not filled out? Commented Jun 23, 2015 at 5:19

2 Answers 2

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 and acknowledge you have read our privacy policy.

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