Which option is the correct?Which of the following are valid ways to reset validation errors? (Choose two) A. Navigate to a different screen B. Use the ClearValidationMessages action C. Use Ajax Refresh on the Form D. Hide the input field
They are A and B
thanks,
may i ask explanation please?
C. the ajax refresh is just applicable in Traditional webD. when the validation error is raised up, although you hide the input field, the form valid is still wrong
A. it is tricky answer, the validation is based on screen context, so when navigate to other one, the context is cleared
B. in fact, there is no ClearValidationMessages built-in action in Outsystems. But, because we eliminate C and D, I think the action is a custom one that we implement to clear all Valid and Validation Message of the inputs
where u get this question from, its really tricky one
B. Use the ClearValidationMessages action
A. Navigate to a different screen
C: Ajax Refresh does not clear validation errors; it only refreshes the UI elements, but the validation messages will remain unless explicitly cleared
D: Hiding an input field does not reset or clear its validation errors; the errors are still present in the validation context.
I believe A & B are correct.
why not C & D because,
C. Ajax Refresh does not clear validation errors; and applicable in Traditional web
D. Simply hiding the input field doesn’t clear its validation; the error still exists in the form.
Hello,
If the question requires choosing two mandatory options, then as everyone mentioned, A and B would be the answers. However, option A feels a bit awkward from a business perspective.
Imagine an end user enters incorrect values in the inputs and triggers a validation message. To clear that message, the user would need to navigate to another screen and then return, which isn’t really feasible.
As for option B, I couldn’t find any built-in client or server actions that explicitly clear validation messages. So, if the assumption is that it’s handled through a client action that clears the validation state (made by the developer), then yes B would make sense.
Options C and D are, of course, not valid, as my colleagues already mentioned.