Adding questions to an SRD
To add questions to an SRD
- Search for the SRD, select it, and click View.
- After you enter a PDT in the Process Template field, click Questions & Mappings under the Process Template field.
- On the Questions tab, create questions to ask your users.
- Select New Question.
- In the Question Text field, enter the question you want to add. You can also add any value that a browser can read, such as hyperlinks. See Adding-hyperlinks-in-an-SRD.
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. - Select a question format; for example, Text or Menu.
- In the Instructions field, enter instructions on responding to the question.
- Specify whether the question is Required, Hidden, or Read Only.
Text, Date, Time, and Date/Time questions are read-only. Hidden questions are for internal data processing and are not visible to users or administrators. You cannot hide Date, Time, and Date/Time questions. Based on the question format, specify the question details.
For example, a text question requires that you define the default response, the number of text rows, and the limit input length.
You can also specify a regular expression to validate user response. If a user enters a response that does not match the pattern specified by the regular expression, the system displays a general error message.- To create your question, click Apply.
- (Optional) To dynamically define additional questions that appear in the context of the answer, click Add Condition.
- To specify the order in which the questions will appear in the Request Entry console after deploying the SRD, select the question and click the Up button to move it up or click the Down button to move it down.
- To remove a question from the list of available questions, select it from the navigation tree and click Delete.
- To map variables to questions, click the Variable Mapping tab.
See Mapping-variables-to-questions. - To map questions to fields on the Service Request form, click the SR Field Mapping tab.
See Mapping-service-request-fields.
Adding branch conditions to questions
For questions that use a radio button, check box, or static menu format, you can add branch conditions to display additional sets of questions based on the user's response. This enables you to ask questions that are relevant to the user's request.
For example, you have a Level 1 question with values of Network Printer and Local Printer. You want to pose additional questions to users who have problems with a locally connected printer. For example:
- Is this an issue with a network printer or a local printer? (question 1)
- Network Printer (condition 1 for question 1)
- Locally Attached Printer (condition 2 for question 1)
- Where are you located? (question related to condition 2)
- San Jose (condition 2.1)
- Floor? (question)
- 1, 2 (options)
- Connection Type? (question)
- USB, Firewire (options)
- Printer? (question)
- Fujitsu, Canon (options)
- Floor? (question)
- San Francisco (condition 2.2)
- Floor? (question)
- 1, 2, 3 (options)
- Printer? (question)
- Xerox, Fujitsu, Canon (options)
- Floor? (question)
- San Jose (condition 2.1)
To add branch conditions to questions
- On the Questions tab of the Question Management form, select the question.
- Click Add Condition.
- In the navigation tree, select New Condition to create the branch condition.
- Select the value from the condition table; for example, Network Printer.
- Click Apply.
The condition is renamed in the navigation tree. - Continue these steps until you have created your conditions for other values. For example, Locally Attached Printer.
- After you create your branch conditions, select the condition from the navigation tree, and click Add Question.
This action creates a New Condition Question record under the condition record in the navigation tree. - To move a question up or down within a condition branch, select the question and click the Up arrow or the Down arrow.
Examples of regular expressions
The following regular expression specifies a pattern for the phone number: (555) 555-1212:
/^([\(]{1}[0-9]{3}[\)]{1}[ ]{1}[0-9]{3}[\-]{1}[0-9]{4})$/The following regular expression specifies the pattern for email addresses in the format <name>@example.com
/[\w\d_-]+@[\w\d_-]+\.[\w\d._-]+/The following regular expression specifies the pattern for numeric input from 1 to 365, for the days of the year:
/^(?:36[0-5]|3[0-5]\d|[12]\d{2}|[1-9]\d?)$/