PEGACPBA88V1 practice question 9 of 10

....can select a checkbox to subscribe to a text messaging service. Selecting the checkbox displays a field to enter a mobile phone number. lo you configure the application to display the mobile phone number field only after users select the checkbox?

Full set: 50 questions
Answer options
A: Use a visibility condition on the checkbox to determine whether to show the mobile phone number field.
B: Use a visibility condition on the mobile phone number field to determine whether to show the field. Correct answer
C: Use a disable condition on the mobile phone number field to determine whether to show the field.
D: Use a validation condition to determine whether to show the mobile phone number field.
Correct Answer:
B. Use a visibility condition on the mobile phone number field to determine whether to show the field.
Explanation

To dynamically display a UI element based on the state of another, you configure a visibility condition on the element you wish to show or hide. In this scenario, the mobile phone number field should only appear when the "subscribe" checkbox is selected. Therefore, a visibility condition is applied directly to the mobile phone number field, which evaluates the boolean state of the checkbox property. When the condition (checkbox is true) is met, the field becomes visible.

Why Incorrect

A. The visibility condition is applied to the element being controlled (the phone number field), not the element that triggers the condition (the checkbox).
C. A disable condition makes a field read-only or non-interactive. It does not control whether the field is visible or hidden on the form.
D. A validation condition is used to check the integrity and format of user-entered data upon submission, not to control the dynamic display of UI elements. ---

References

1. Pega Platform 8.8 Documentation, "Configuring visibility for a control."

This document states, "You can configure a control to be visible or hidden by default, or to be displayed based on the result of a when condition or an expression." This directly supports applying a visibility condition to the mobile phone number field (the control) based on the state of the checkbox.

2. Pega Academy, "Low-Code App Builder" Mission, Module: "Capturing and presenting data," Lesson: "Configuring user view elements."

This lesson details how to configure view elements in App Studio. It demonstrates setting the "Visibility" option for a field to "Conditional" and then defining the condition (e.g., when another field has a specific value), which aligns perfectly with the correct answer.

3. Pega Platform 8.8 Documentation, "Configuring a control."

This document outlines the various configuration tabs for controls, including "Presentation" and "Validation." It clarifies that "Visibility" and "Disable" are separate options under the "Presentation" tab, while "Validation" is a distinct function for data integrity, reinforcing why options C and D are incorrect.

Scroll to Top