Configuring conditional visibility in Constellation Views
3 Tasks
30 mins
Intermediate
User Experience
Constellation
English
Scenario
Work on the Tell Us More application from Sweet Life Inc. continues. In this challenge, you are tasked with configuring the View associated with the Contact Info Step. In addition to creating Customer data relationship for this View, you configure the Conditional Visibility for the Address field.
Note: This challenge has been configured with Single sign-on (SSO) using your Pega Academy credentials. If you are not automatically signed-in to the challenge environment after initializing the instance, you may use the credentials provided.
The following table provides the credentials you need to complete the challenge:
| Role | User name | Password |
|---|---|---|
| System Architect | Author@SL | pega123! |
Detailed Tasks
1 Configure the Customer data relationship
- In the navigation pane, click Case Types, and then click Incident.
- Click the Data Model tab.
- Click Add Field, and then in the Add Field to Incident dialog box configure the following settings and click Submit:
- Field name: Customer
- Field type: Embedded Data
- Data object: Customer
- Options: Single record
- Click Save.
2 Create the Contact Info View
- Click the Workflow tab, in the Create Stage click the Contact Info Step, and then click Configure User Action.
- In the Fields section, click Add > Fields, select Customer, and then click Add.
- In the Customer (Customer) field row, click the gear icon, configure the following settings, and then click Save:
- Display as: Form
- Label: Customer
- View: Create
- Click the Customer (Customer) field to open the Customer View editor (a shared View that contains the primary fields).
- Remove the Primary fields entry.
- Click Add > Views, select Main info, and then click Add.
- Click Add > Fields, select Address Mode, and then click Add.
- In the Address Mode field row, click the gear icon, configure the following settings, and then click Save:
- Display as: Radio buttons
- Label: Custom > How would you like to provide your address?
- Select the Horizontal display checkbox.
- Required: Always
3 Add Address information to the Customer View
- Click Add > Views > Create View. In the Create a new View dialog box, enter the Name Address - Using map, keep the Default form template, and then click Submit.
- Click Add > Fields, expand Address and then Fields, select Location, and then click Add.
- In the Location field row, click the gear icon, select the Show map checkbox under Input settings, set the Label to Custom > Location, and then click Save.
- Click Back.
- In the Address - Using map View row, click the gear icon, and then configure the following settings:
- Heading: Address
- Visibility: Custom Condition
- Click the Configure Visibility Condition gear.
- In the Condition Builder, set Field to Address Mode, set the conditional operator to is equal to, enter the Value Using map, and then click Submit.
- Click Save.
- Click Add > Fields, select Address, and then click Add.
Note: The Data-Address-Postal Data Type drives the Address field functionality.
- In the Address field row, click the gear icon, set Visibility to Custom Condition, and then click the Configure Visibility Condition gear.
- In the Condition Builder, set Field to Address Mode, set the conditional operator to is equal to, enter the Value Manually, and then click Submit.
- Click Save.
- Click Back, in the Contact Info View editor click Submit, and then click Save.
Available in the following mission:
If you are having problems with your training, please review the Pega Academy Support FAQs.
Want to help us improve this content?