The text indicates the group or field to which the control is bound in the data source. When you select or move your pointer over a control, text and a binding icon appear in the upper-right corner of the control. When a control is unbound, it is not connected to a field or group, and data entered into the control is not saved. When a control is bound, it is connected to a field or group in the data source so that data entered into the control is saved in the underlying form (.xml) file. The following illustration shows how a date picker looks when it is selected in design mode.Ĭontrols can be bound or unbound. The procedure for inserting a date picker differs slightly depending on whether you are designing a new, blank form template or basing the design of your form template on a database or other external data source. An example of placeholder text is "Click here and type." Although you can leave placeholder text settings for browser-compatible form templates, that text does not appear in Web browsers. Placeholder text is text that appears inside a control on a form template. In other Web browsers, the date picker appears as a text box, although date formatting options are supported in the text box.
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.Īlthough date pickers are available when you design a browser-compatible form template, be aware of the following limitations:ĭate pickers are fully supported only in Windows Internet Explorer browsers. 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 form template in InfoPath, you can choose a specific compatibility mode to design a browser-compatible form template. If users want to insert the current date, they can click the Today button at the bottom of the calendar. When the calendar appears, users can click the date that they want on the calendar or use the right and left arrow buttons to scroll through the months. To open the pop-up calendar, users click the calendar icon. For example, you can specify a default date or change the way that the date is displayed on the form.ĭate pickers look like text boxes, except that a small calendar icon appears on the right side of the box. You can customize the date picker to suit your needs by double-clicking the control on the form template and then changing its properties. In the following illustration, a date picker is used on a travel request form template to collect the departure date for a flight. Use the today and now functions to show today's date and time on a form.ĭisplay dates from an external data source, such as billing and shipping dates from a database of customer orders.
In this articleĭisplay the current date in a date pickerĭisplay the current date and time in a date pickerĮnable users to enter dates of their choice on a form, such as start and end dates for a particular project. You can also use a date picker to display preset dates, such as the current date. For example, you can use a date picker to collect birth dates from people on an insurance form. A date picker is a control that lets users quickly enter dates in a Microsoft Office InfoPath form by clicking a small pop-up calendar.