ASSOCIATE-REACTIVE-DEVELOPER practice question 29 of 35

Which of the following behaviors is true for Links and Buttons?

Full set: 262 questions
Answer options
A: Only Links can navigate to external URLs.
B: Links can only navigate to Screens.
C: Buttons can only have a Screen Action as an On Click Destination.
D: Links and Buttons can either Navigate to screens or trigger Screen Actions. Correct answer
Correct Answer:
D. Links and Buttons can either Navigate to screens or trigger Screen Actions.
Explanation

In Outsystems Reactive Web Apps, both the Link and Button widgets are fundamental UI elements used to trigger user interactions. They share the core capabilities of either navigating to another Screen within the application or executing a Screen Action. For a Link, this is configured via its On Click property, which can be set to a Destination (a Screen) or a Screen Action. Similarly, a Button's On Click event can be configured to Navigate to a Screen or to call a Screen Action. This provides developers with flexibility in designing user flows and interactions.

Why Incorrect

A. Both Links and Buttons can be configured to navigate to external URLs, not just Links.
B. Links are not limited to screen navigation; they can also trigger Screen Actions or navigate to external URLs.
C. A Button's On Click event can be set to navigate to a Screen in addition to triggering a Screen Action.

References

1. OutSystems Official Documentation, "Link widget": Under the "Properties" section for the On Click event, it states: "Action to be executed when the end-user clicks the link. The destination can be a Screen, a Screen Action, or an external URL." This directly refutes options A and B.

2. OutSystems Official Documentation, "Button widget": In the "Properties" section, the On Click event is described as the "Action to be executed when the end-user clicks the button." The documentation further clarifies that this can be set to a Screen Action or to Navigate, which includes navigating to another Screen. This refutes option C.

3. OutSystems Training, "Becoming a Reactive Web Developer" Guided Path, "Logic" Module, "Screen and Client Actions" course: This course demonstrates how both Buttons and Links are commonly used to trigger Screen Actions to execute logic, such as saving data or performing calculations, confirming that both widgets can trigger actions.

4. OutSystems Training, "Becoming a Reactive Web Developer" Guided Path, "UI" Module, "Navigation and UI Flows" course: This section illustrates that both Links and Buttons are primary mechanisms for implementing navigation between screens, confirming the navigation capability for both widgets as stated in option D.

Scroll to Top