![]() ![]() For example, in a Number of nights in hotel text box, placeholder text can be used to prompt users on what type of data they should enter. If you want to provide guidance to your users about what data to enter into the text box, you can type instructional text in the Placeholder box. For example, on a stock purchase form, you can use a rule to retrieve and display real-time stock quotes in a text box, either when the form is opened or when the user requests the information. In a purchase order form, for example, if a user types a number greater than 10 in an Amount text box, you can use a rule to display a dialog box that says "Ordering more than 10 different items at once may delay shipping." You can also use a rule to automatically retrieve updated information from an external data source. When you click Rules, you can create a rule that makes one or more actions occur automatically when users change the value in a control. For example, if you need part numbers to be entered in a specific format - three numbers, then a dash, and then two more numbers - you can use data validation to ensure that users conform to this pattern. Users cannot submit data until they enter a value in the control.Ĭlick Data Validation to specify data validation rules for the control. When users open the form, a red asterisk will appear in the control as a reminder not to leave it blank. To visually remind users to type data into a control, select the Cannot be blank check box. Or you can associate the today function with a specific text box so that when the user opens the form, the current date is displayed in that text box. For example, you can create a formula that sums a column of numbers in a repeating table by using a text box in conjunction with the sum function. To display the results of a calculation in a control, you can click Insert Formula next to the Value box to associate formulas and functions with the control. Default values are different from placeholder text (which is described later in this article) in that they are always saved as data in the form (.xml) file. You can also use the value of another field in the data source as the default value for a control. If you want default text to appear inside a control when a user first opens the form, you can type that text in the Value box. Use for both dates and times, such as 11:30 A.M. Use for time-based values, such as 9:46:55 or 09:46 A.M. Use for dates, such as or March 14, 2007. Use for hyperlinks, such as a Universal Naming Convention (UNC) path or a Uniform Resource Locator (URL). Use for data that should be either 1 (true) or 0 (false). Use for positive or negative whole numbers, such as 1234, –1234, or $1,234. ![]() Use for data such as names, addresses, phone numbers, Social Security numbers, and so on. The following table lists the data types that are available for text boxes. For example, if you want users to enter British pounds into a Transaction amount text box, you can choose the Whole Number (integer) data type, and then choose formatting options so that the values typed into the text box are displayed with the pound (£) currency symbol. The default data type for a text box is Text (string), but you are free to change this. When you design a new, blank form template, you can change the default data type for a control. ![]() If you need to bind a text box to a different field, right-click the text box, and then click Change Binding on the shortcut menu. Note: Changing the field name does not change the binding between a text box and field in the data source. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |