Creating questions with default responses
As a catalog administrator or internal service supplier, you can configure questions to be prepopulated with default answers. You have the following options to prepopulate responses in a service questionnaire:
As a catalog administrator, you can also enable a global setting to share responses between the same question in a shopping cart. For more details about this functionality, see Enabling questions to share responses between multiple services in the same cart.
Before you begin
Create either or both of the following items:
A service that will use the questionnaire, as described in Adding and updating services.
A workflow that will use the questionnaire, as described in Workflows for service fulfillment.
A questionnaire to be associated with a workflow, as described in Designing a questionnaire.
To set the default value for a question
- From the Questions tab of the Questions Designer, add a Text Field question to the canvas.
- Enter the Label that is displayed on the questionnaire.
- Toggle Default Value to selected.
Select the type of service context from the following options:
Service Broker Context – Enables you to select a variable from the service context.
If you selected Service Broker Context, now select the specific Context Variable.Custom Value – Enables you to enter a specific value.
- Ticket Template – Enables you to set a Business Workflows template name as the default answer.
If you selected Ticket Template, now select the specific Template Name. You can use this option only if the Innovation Suite connector is configured and connected.
If you selected Service Broker Context, now select the specific Context Variable.
Note
When setting the default value for multi-user requests, to enable the Requested For and Requested By context variables, select the Page questions collect unique answers for each user check box. If this check box is not selected, only the Requested By context variable is available.
- Click Save.
About actions that trigger default responses
You can create actions to prepopulate question responses with information only from Remedy forms, and only for the following question types:
- All date and time questions types
- Text question types except password question type
- Selection question types: dropdown, multiselect dropdown, radio button, checkbox
To create an action that triggers responses when the questionnaire opens
In this scenario, trigger conditions are optional. If you do not specify trigger conditions, the action is always triggered when the questionnaire opens. You can use trigger conditions to trigger an action in response to a specific response to another question. If you use trigger conditions, consider that when the end user makes the request, only questions that have the matching value when the questionnaire opens are triggered. Unanswered questions match the condition of {no value}. Questions with a default value (prefilled question responses) are already answered. In addition, questions might already be answered because they are prefilled from previous requests in the same cart, or because a service is requested again.
- From the left pane of the Questions Designer, click Actions and then click Add an action.
- Enter a descriptive Action Name.
- For Trigger, select Open questionnaire.
For this example, do not set the Trigger Conditions because the action is always triggered when the questionnaire opens. - To select the Remedy form, click Add Form, search for the form, and then add it.
This examples uses CTM:People, which contains the Remedy IT Service Management data about people. - Build an expression into the query box that is used to select the appropriate record from the form.
For this example, perform the following steps to build the query:- Click Insert field, search for
name,
and select Remedy Login ID from the list of fields on the CTM:People form.
By default, the expression builder adds is and prompts you to select the value. In this example, leave the default of is. You can click is to see other options, such as is not and contains. Click the box prompting Please Select, and select Requested For from the Variable data.
Note
When creating an action, the Requested For and Requested By context variables are available for both single-user and multi-user requests.
You can use variable data to select records based on the user. If any question responses are prefilled or have default values, you can select those questions. Alternatively, you can select free text to enter a specific value.
The query runs at the time of the user request. The search is restricted to the list of records that the user has permissions to view. For more information about the query syntax, see Using fields in the advanced search barin the BMC Remedy AR System 18.08 documentation.
- Click Insert field, search for
- Map data from the Remedy record to a question response.
To add the mappings used in the example, perform the following steps:- Click Add Mapping.
- In Form Field, search for
name
, and select ManagersName. - For the Question Response, select Approver. You can select only questions that are already on the canvas.
- Save the action.
The system validates the query syntax for the trigger conditions (if applicable) and for the question response. If the syntax is not valid, the query is highlighted with a warning. The query uses standard Action Request System syntax. For more information, see
Using fields in the advanced search bar
in the BMC Remedy AR System 18.08 documentation.
In the following illustration, the Requester's name field is prepopulated with a default value and appears on the canvas as prefilled. An action sets the Approver response to the manager of the requester, as recorded in the CTM:People form.
To create an action that triggers responses based on responses to other questions
You can define actions that are triggered based on how a user answers a question. These actions can update other question responses.
In the following illustration, the user response to the Site is a trigger that sets the responses to the Shipping Address questions. In this example, the action is triggered in response to the user selecting any site.
The following steps show how to create the action illustrated in this example.
- From the left pane of the Questions Designer, click Actions and then click Add an action.
- Enter a descriptive Action Name.
- For Trigger, select Answer question.
- For the Trigger Conditions, build an expression that recognizes that a value for the site is selected by performing the following steps:
- Click Insert question, and select Site.
- Click is and change to is not.
- Click Please Select and select {no value}.
- To select the Remedy form, click Add Form, and then search for the form and add it.
This example uses SIT:Site, which contains the Remedy IT Service Management data about sites in the organization. - Build an expression into the query box that is used to select the appropriate record from the form.
In this example, perform the following steps to build the query:- Click Insert field, search for
name,
and select Site ID from the list of fields on the SIT:Site form.
Choose Site ID because you set the Site response actual value to Site ID.
By default, the expression builder adds is and prompts you to select the value. In this example, leave the default of is. You can click is to see other options, such as is not and contains. - Click the box prompting Please Select, and select Site.
- Click Insert field, search for
- Map data from the Remedy record to a question response.
To add the mappings in the example, for each field in the address, click Add Mapping, and map the field. For example, map the Form Field of Street to the Question Response of Street. - Save the action.
Comments
Log in or register to comment.