1. Make Screen Tips Informative for Validation
Scenario/Problem: | You have fields on your form that have validation rules that require screen tip text. |
|
Solution: | Include the format that the field needs to conform to in the screen tip. |
When using validation rules , the entered values must
conform to the configured pattern. If users do not know the format
expected, they can become frustrated, and you don’t want to leave them
guessing.
Therefore, it is a recommended best practice to
include the required format (of the value) within the screen tip to
provide the user with the expected entry pattern, as shown in Figure 1.
2. Notify the User of Successful Submission
Scenario/Problem: | You want to notify the user that the form has been submitted successfully. |
|
Solution: | Use a confirmation view to notify the user of a successful submission. |
After submitting a form, the user may or may not
know that the information has been successfully received by SharePoint.
Therefore, it is a best practice to create a confirmation view that is
displayed after form submission.
The first steps required to create and configure a confirmation view is to set up the submit options:
1. | On the Data ribbon bar, click Submit Options. The Submit Options dialog appears.
|
2. | In the Submit Options dialog, select the Perform Custom Actions Using Rules option, as shown in Figure 2, to configure the submission of the form.
|
3. | For this example, click the Advanced button and change the After Submit to Leave the Form Open, as shown in Figure 3, to configure what occurs after submission.
|
4. | Click OK.
|
That takes care of the submit options, but now you
need to configure the form submit rule. For this example, you will need
to create a new view named Confirmation View, which
should contain a submit confirmation message and a button that closes
the form.
To enter the submit rule, follow these steps:
1. | On the Data ribbon bar, click Form Submit in the Rules section. The Rules pane appears.
|
2. | Click New and select Action.
|
3. | Enter Submit Form as the name of the rule.
|
4. | Click Add and select Submit Data. The Rule Details dialog appears, as shown in Figure 4, which allows you to configure the connection.
|
5. | Select the data connection to submit the form.Click OK. Your submit rule should look similar to Figure 5, which ensures the form will be submitted.
|
6. | Click
Add again to add another action. Select Switch Views. In the Rules
Details dialog, change the view to the Confirmation View, as shown in Figure 6, to determine which view to be displayed. Click OK. Your form submit rule should now look similar to Figure 7, which implements two actions upon form submission.
|
7. | Save
and Publish your form to SharePoint. Once your form is published to
SharePoint, you may create a new instance and test the rules.
Submitting the form displays the confirmation view, as shown in Figure 8.
|