Creating an Input Question involves creating a Question element and configuring general settings, and then designing the response format using the Input tab. Parameters on the Input tab (explained in the table below the figure) determine:
- The type of response that the user may enter.
- How the response is formatted.
|Input type||Enables you to select the type of response that can be entered by users:
The options that appear below the dropdown list vary according to the option selected.
Note: When you select an input type of Short Text, Number, Currency, or Date, the Format button is enabled. The Format feature allows you to specify how the input will be displayed in runtime. For more information, refer to Working with Data Type Formatting.
|Max Characters||Maximum number of characters that can be entered in the input text field.|
|Default Value||When this radio button is selected, an assigned value is displayed as the default answer. Users may change this answer if it is not relevant to them.
When configuring the assigned value, clicking the Browse icon opens the Default Value window, where you can create a dynamic text message by dragging and dropping predefined elements into the message.
|Place Holder||When this radio button is selected, a preconfigured text (in gray font) is displayed to users, who then replace this text with their own answer. The placeholder text generally provides an example, or prompts users about how to respond.|
|Validation settings||Allows you to configure valid ranges for user responses. For example, you can set a range for valid numeric entries, so that only numbers between 1 and 10 are accepted.|
Using Validation Settings
The validation options provided allow you to set up a validity check for the input entered by the user. The options include:
- Custom Validation: When this option is selected, clicking the Browse icon opens the Custom Regex dialog. In this dialog, you can define a custom regular expression with which data is compared and validated. (For example, you can validate whether a user entered input in email address format.) The Error Message frame enables you to create a customized message that is displayed to the user when invalid input is entered.
- Integration Point Validation: When this option is selected, clicking the Browse icon opens the Integration Point Validation dialog. The Integration Point tab allows you to select a predefined web service call to be used for validating the user's input. The Input tab shows the input parameter(s) of the web service request, and enables you to select the source of the input. In the following example, the input is the response the user provides to the MultiLineInput Question.
Note: For more details about Integration Points and their definitions, refer to Utilizing External Data Sources.