Alternative for "input_focusFirstInvalid" in Reactive
Question
Application Type
Reactive

Hi all,

Currently I am working on a reactive application and got stuck in a issue. When I submit a form then I want to set focus on first invalid field. 

Any suggestion will be appreciated .

Champion

Hi Rajat,
You can write your logic to find the first invalid field.
Once you get the Id of first invalid element, after that you can use the SetFocus client action to set the focus on the first invalid element.

OR

You can write the custom javascript to find the first invalid element and can set the focus on it through javascript.

Outsystems add a class "not-valid" to the invalid elements, basis on the class name you can find the first invalid element. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.