Trigger scroll to roll down to bottom automatically

0
Hi everyone, I’m working on a Native Mobile App and i’m trying to figure out how to trigger a scroll-to-bottom behavior automatically. My situation is: I have a form with a lot of fields, and some with conditional visibility. Wich means that they will appear if the user selects some specific options, in radio-buttons. But some of them will be out of the visible area when the user clicks the related radio-button, and the field becomes visible (as it is located at the bottom of the form). I trying to find a way to force the scroll to the bottom when these new fields become visible (from the user click in radio-button above). Any suggestion on how to achieve this?
asked
3 answers
5

Hi, you can use 

window.scrollTo(0,document.body.scrollHeight);

in javascript action past this code and call it in onclick event uisng nanoflow.

 

answered
1

I’ve added an answer to your question on stackoverflow see: https://stackoverflow.com/questions/68988397/trigger-scroll-to-roll-down-to-bottom-automatically-in-mendix-native-mobile-app/69192715#69192715

answered
0

If you want to achieve this, you may have several options from this older forum post: 

https://forum.mendix.com/link/questions/88267

answered