ASSOCIATE-REACTIVE-DEVELOPER practice question 19 of 35

When data is sent to the server with the Submit method, OutSystems has built-in validations that validate ...

Full set: 262 questions
Answer options
A: Mandatory values, correct Data Types, and Business Rules.
B: Mandatory values and correct Data types. Correct answer
C: Correct Data Types and Business Rules.
D: Mandatory values and Business Rules.
Correct Answer:
B. Mandatory values and correct Data types.
Explanation

When a form is submitted in an OutSystems Reactive Web App, the platform automatically performs built-in validations. These validations check two specific conditions: first, whether any input field marked as Mandatory has been filled; and second, whether the data entered into a field matches the expected Data Type of the variable it is bound to (e.g., ensuring a number is entered for an Integer attribute). Business rules, which represent custom logic (e.g., an end date must be after a start date), are not automatically validated. Developers must explicitly implement logic for business rule validations within a Server Action and manually set the input widget's Valid property and ValidationMessage.

Why Incorrect

A. Incorrect. Business Rules are not part of the built-in, automatic validations; they require custom logic implemented by the developer.
C. Incorrect. Business Rules are custom validations that must be explicitly coded, not automatically performed by the platform on submit.
D. Incorrect. This option incorrectly includes Business Rules, which are not a form of built-in validation in OutSystems. ---

References

1. OutSystems Official Documentation, "Validate form inputs in Reactive Web Apps": This document explicitly states, "OutSystems has built-in validations for mandatory fields and data type conversions." It further clarifies that custom validations (business rules) require adding logic to an action flow to check the condition and set the input's Valid property. (See section: "Add custom validation logic").

2. OutSystems Official Documentation, "Input Widget": The documentation for the Valid runtime property of the Input Widget explains that its value is automatically set to False if the mandatory field validation or the data type conversion fails. For custom validations, the developer must manually set this property. (See section: "Runtime Properties > Valid").

3. OutSystems Training, "Reactive Web Developer Guided Path", Validating Form Fields module: This official training course distinguishes between built-in validations and custom validations. The lesson "Built-in Validations" covers mandatory and data type checks. The subsequent lesson, "Logic Validations," demonstrates how to implement custom business rules by adding logic to a Server Action. (See sections: "Built-in Validations" and "Logic Validations").

Scroll to Top