45
Views
2
Comments
Solved
we are using move to top of the page using js,but need move to particular input widge

I created a form with almost 20 inputs in it, I have that submit button in the below of those 20 questions at the bottom of the page, I am using form validation on submit, because I am at the bottom of the page when clicking on submit, when I click on submit  if any field not filled, need to focus or go to that input which is not filled  kindly suggest me.

2023-04-16 15-25-31
Krishnanand Pathak
Solution

Hi Priya,


You can use ScrollToElement provided by OutsystemUI:


Thanks
Krishnanand

2022-07-11 14-05-36
Jeroen Barnhoorn
Solution

Hi Priya,

You can still do this using JavaScript, you just to need tweak your code a little bit and provide it with the id of the (input) element you're trying to scroll to:

document.getElementById($parameters.elementId).scrollIntoView();


Where $parameters.elementId is the id of the element you're scrolling to, that you passed to the JS action. You can select it from the Widgets list:

(Make sure you fill the Name property of the element, otherwise it won't show up in the Widgets list.)

2023-04-16 15-25-31
Krishnanand Pathak
Solution

Hi Priya,


You can use ScrollToElement provided by OutsystemUI:


Thanks
Krishnanand

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