Form Validations Flashcards

1
Q

What is the purpose of form validations in OutSystems?
A) To limit user input fields
B) To prevent users from submitting any data
C) To reduce user mistakes when submitting data to the database
D) To increase the number of input fields on a form

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What do built-in validations in OutSystems not require?
A) Custom logic implementation
B) Input Type property setup
C) Mandatory property setup
D) Data submission to the database

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the two types of built-in validations available in OutSystems?
A) Numeric and string validations
B) Mandatory fields and data type compliance
C) Form-level and input-level validations
D) Button click and link click validations

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The Input Type property of an input field should have:
A) A different data type than the variable bound to the widget
B) The same data type as the variable bound to the widget
C) A data type set automatically
D) No specific data type

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do custom validations in OutSystems allow developers to do?
A) Skip form validations
B) Create specific validations beyond built-in ones
C) Automatically trigger data submission
D) Limit the number of input fields in a form

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do we enable built-in validations for a form submission button or link?
A) By enabling a validation module
B) By setting the Built-in Validations property of the button/link to Yes
C) By creating a custom validation
D) By clicking the form

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which two properties are important for implementing custom validations on an input field?
A) Input Type and Mandatory
B) Valid and ValidationMessage
C) Submit and Cancel
D) Required and Optional

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the Valid property of an input field indicate?
A) Whether the field is mandatory
B) Whether the field is valid or not
C) The length of input data
D) The type of input data

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What should a validation message explain?
A) Why the input is valid
B) The size of the input data
C) Why the input is invalid and how to fix it
D) How to disable the validation

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How can custom validations be implemented in OutSystems?
A) By setting a property in the input field
B) By using an If condition that verifies if the input field has a valid value
C) By clicking the form submit button
D) By disabling built-in validations

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the Valid property of a form indicate?
A) If all input fields in the form are valid
B) If a specific input field is valid
C) The data type of the form fields
D) The number of input fields in the form

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When does the Valid property of the form become False?
A) When all input fields are valid
B) When any input field in the form is not valid
C) When the form has no input fields
D) When the form is submitted

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Can the Valid property of the form be explicitly changed in the logic?
A) Yes, it can be set by the developer
B) No, it is automatically managed by the platform
C) Yes, but only when using built-in validations
D) No, it can only be set during submission

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What happens if a form is not valid after performing all custom validations?
A) The form submission is ignored
B) The user is redirected to another screen
C) The flow ends without executing the happy path
D) The form proceeds to the next validation

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Why is it important to validate the form after all custom validations?
A) To ensure data is stored regardless of errors
B) To prevent multiple validation failures from appearing at once
C) To ensure the form is valid before executing the happy path and storing data in the database
D) To remove the need for built-in validations

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

When does a validation message appear for an invalid input field?
A) When the input field loses focus
B) When the input field gains focus and is invalid
C) When the form is submitted
D) When the input field is valid

A

B

15
Q

What styling is applied to an invalid input field?
A) A green border
B) A blue highlight
C) A red border
D) A grey background

A

C

16
Q

What happens to the form if the Valid property of each input is set to True?
A) The form becomes invalid
B) The form will display validation messages
C) The form can proceed with the submission or flow execution
D) The form fields are reset

A

C

17
Q

How do built-in validations determine the validity of an input field?
A) Based on user-defined conditions
B) Based on the Input Type and Mandatory properties of the input field
C) Based on custom logic provided by the developer
D) Based on the length of input data

A

B

18
Q

Which of the following options is correct regarding the Valid property of the Form?
A. The Valid property of the Form should be checked after the last custom validation.
B. The Valid property of the Form is automatically changed to False when all the input fields of the Form are not valid.
C. The Valid property of the Form should be explicitly set to False (e.g. with an Assign) when an input field is not valid.
D. When built-in validations are enabled, the Valid property of the Form is automatically checked before executing the client action logic.

A

A
This allows to branch the execution and avoid storing invalid data in the database.