Skip to main content

Customizing a View at run time

3 Tasks

15 mins

Visible to: All users
Beginner Pega Platform '23 User Experience English

Scenario

GoGoRoad stakeholders want the Enter customer information View and Identify Location View to be streamlined to display the relevant information with proper Validations. To achieve this request, change the coverage information of Enter customer information View to a two-column layout and add the ZIP code property to the Identify Location View with required Validations.

The following table provides the credentials you need to complete the challenge.

Role User name Password
Application Developer author@gogoroad pega123!
Note: Your practice environment may support the completion of multiple challenges. As a result, the configuration shown in the challenge walkthrough may not match your environment exactly.

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Add a property to a data type

  1. In the Pega instance for the challenge, enter the following credentials:
    1. In the User name field, enter author@gogoroad.
    2. In the Password field, enter pega123!.
  2. In the navigation pane of App Studio, click Data. 
  3. In the Data objects and integrations landing page, click Service address to open the Service address data object.
    data_objects_integrations_landing_page
  4. Click Add field to add a new field to the Service address data object.
  5. In the Field name field, enter Zip.
  6. In the Type list, select Text (single line).  
  7. Click Advanced to expand the options
  8. In the Max length field, enter 5.
    zip3
  9. Click Submit and save the changes. 

2 Change the template to a two-column layout

  1. In the navigation pane of App Studio, click Case Types > Assistance Request to open the Assistance Request Case Type.
  2. Click Save and run to create a Case instance.
  3. Advance past the Identify issue Step.
  4. In the Enter customer information View, toggle the Design mode.
    Design button location
  5. Hover over the Enrollment information Section, and then click Edit this Section to open the Enrollment information pane.
    Enrollment section
  6. In the Enrollment information pane, to the right of Template, click Change to change the template.
    asdf
  7. In the Select a template window, click 2 Column.
  8. In the Enrollment information pane, hover over Coverage level, and then click and drag the item to Column B.
    Move drop down to a different column
  9. Click Close to close the Enrollment information pane.
  10. Toggle the Design mode.

3 Configure the control settings

  1. Click Continue to advance the Case to the Identify location Step.
  2. Toggle the Design mode.
  3. Hover over the Service address Section, and then click Edit this Section.
  4. In the pane on the right, click Add.
    dfsf
  5. In the Fields Section, hover over the Zip field and click Add to View.
    zipcode
  6. Click Close to return to the previous pane.
    close
  7. In the pane on the right, hover over Zip, and then click Edit this "Text input"
    sss
  8. Clear the Use property default check box.
  9. In the Label value field, enter Zip code.
  10. In the Placeholder list, select Other.
  11. In the field under the Placeholder list, enter 12345 as the placeholder value.
  12. In the Required list, select Always.
    actual zip settings
  13. Click the Presentation tab.
  14. In the Editable Settings section, in the Min characters field, enter 5.
  15. Repeat step 14 for Max characters field.
  16. In the Editable Format section, in the Type list, select Number.
  17. In the Text alignment list, select Left.
  18. Clear the Display value using read-only formatting check box. 
    zip10
  19. Click Apply to save your changes.
  20. Click Close to return to the previous pane.
  21. Click Close to close the section pane.
  22. Toggle Design mode.

Confirm your work

  1. From the multi-Step navigation menu, click Enter customer information to return to the previous Step.
  2. In the Account ID list, select an enrolled customer and confirm that the Coverage level is displayed in the second column.
    enter_customer_information
  3. Click Continue to navigate to the Identify location Step.
  4. In the Identify location View, verify that you can enter only numbers in the Zip code field.
  5. In the Zip code field, enter a value with more than 5 digits and click Continue.
  6. Confirm that you receive an error message when the Zip code length is greater than 5 characters.
    Identify location error if Zip code is longer than 5 digits
  7. In the Zip code field, enter a value with less than 5 digits and click Continue.
  8. Confirm that you receive an error message when the Zip code length is less than 5 characters.
  9. In the Zip code field, enter 5 digits and click Continue.
  10. Confirm that the Case advances to the Identify vehicle Step.

This Challenge is to practice what you learned in the following Module:


Available in the following missions:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice