Make a control required InfoPath 2007
Author: mety Labels:: Make a control required InfoPath 2007If you want to require users to enter a value into a control (control: A graphical user interface object, such as a text box, check box, scroll bar, or command button, that lets users control the program. You use controls to display data or choices, perform an action, or make the user interface easier to read.) when they fill out your form, you must make the field that the control is bound (bind: To connect a control to a field or group in the data source so that data entered into the control is saved. When a control is unbound, it is not connected to a field or group, and so data entered into the control will not be saved.) to a required field. For example, to help ensure that a user selects a check box to indicate compliance with a user agreement, you can make the field associated with the check box a required field. Depending on the procedure that you use to make a control required, and whether a user fills out a form based on your form template by using a Web browser, a required control may be displayed in one of the following ways:
Compatibility considerationsWhen you design a form template in InfoPath, you can choose a specific compatibility mode to design a browser-compatible form template. When a browser-compatible form template is published to a server running InfoPath Forms Services, and then browser-enabled, forms based on the form template can be viewed in a Web browser. When you design a browser-compatible form template, some controls are unavailable in the Controls task pane because they cannot be displayed in a Web browser.Some data validation features work differently in a Web browser than they do in InfoPath. For example, when you add data validation to a control, you create explanatory text to be displayed when a user enters invalid data into that control. You can have this explanatory text appear in a ScreenTip, and optionally allow users to display an alert that contains additional information, or you can have the alert appear automatically when a user enters invalid data. Alerts cannot be displayed automatically for forms that are viewed in a Web browser, but users can still view the ScreenTip, and optionally display an alert containing additional information. List of controls that can be set as required fields The following table lists the Microsoft Office InfoPath 2007 controls that can be set as required, and indicates whether each control is available for browser-compatible form templates.
Display a standard error message when a control is left blankMost controls that support being set as required have a Cannot be blank check box in the Control Properties dialog box. By selecting this check box, you make the field for the control a required field. Note If you are unable to select the Cannot be blank check box, or if the check box does not appear, you must create a custom error message.
Display a custom error message when a control is left blank
|