Defining text questions
Text questions appear in the Request Entry Console as a single or multiple row text field.
To define text questions
- Open the Questions & Mappings dialog box for an SRD. See Adding questions to an SRD.
- On the Questions tab, click Add Question.
In the Question Text field, enter a question for users. You can enter up to 254 characters.
If you want to enter the greater than (>) or less than (<) sign in the Question Text field, use encoded text (> for >, and <for <); otherwise, browsers will interpret the greater than and less than signs as HTML markup, which is not supported. For more information, see Restrictions in creating questions.
- You must enter at least one character. If you use only one character, it cannot be a space.
- If you are passing the values from a text question from BMC Service Request Management to a fulfillment application (such as BMC Incident Management), make sure you set the proper field length values. Otherwise, you might see errors in the CAI events trying to create records in the fulfillment applications. This can occur when data from one of the fields in the service request is too long. For example, trying to pass 254 characters to a field that only accepts 100 characters. For more information, see Other troubleshooting tips.
- In the Question Format field, select Text.
- (Optional) In the Instructions field, enter instructions on responding to the question.
- In the Number of Text Rows field, specify how many lines are used in your question.
If you enter 1, the Text field appears in the Request Entry form as a single-line input field. If you enter 2, the Text field is two rows in height, and so on.
- In the Limit Input Length To field, specify the amount of characters that a user can enter.
This field is important for fulfillment application mapping if the fields are limited in input length. By default, for a single-line question, users can enter as many as 128 characters.
- (Optional) In the Specify Regular Expressions field, enter a regular expression to validate the user's response.
Regular expressions enable you to ensure that users enter information, such as email addresses, in the correct format. If the user enters a response that does not match the pattern specified by the regular expression, the system displays an error message. For examples of regular expressions, see Adding questions to an SRD.
- Click Save.