Hi community,
in my reactive application, I need to do following after validating:
So this is how I thought it should be done:
(using the Client actions of Outsystems UI Version 2.15.0 ). FocusFirstInvalidInput gets the Id of an all-enclosing container.
Unfortunately, the FocusFirstInvalidInput doesn't do anything here. I have also tried to check if the AccordionExpandAll has been successfull, that didn't help.
Is there some way I could fix this?
Thanks, Maria
Hi all, I´ve managed to solve my problem. As the accordion expansion takes some time, the scrolling will work properly first when the accordion has been fully expanded.
So, using this flow won´t work.
I have built a custom action to find the first invalid element and then scroll to it, with a defined delay. Like this:
function foo(){ var element = document.querySelector(".not-valid"); if(element){ element.scrollIntoView({ behavior: "smooth", block: "center" }); }};window.setTimeout(foo, $parameters.SetTimeout);
When I set the timout to 250ms (or longer), it works correctly. Setting a lower value will trigger the scrolling before the expand is finished and thus scrolls to the wrong place.
I know this is a tough one... Anybody?