Sign In   Register
  Tuesday, 25 January 2022
  0 Replies
  72 Visits
I have a dialog object that contains a lot of data for disclosure statements. The user will need to scroll to the bottom of the document, at which point the 'disagree' and 'agree' options will be eligible to click. Does anyone know how to hook into the scroll event of the dialog box so that I can calculate when they scroll to the bottom of that dialog?

I got this to work on a regular page when I could hook into the window.onscroll event as follows. This however does not work with a dialog object because I am not scrolling in the window anymore, but rather the dialog object.

window.onscroll = function() {
var totalPageHeight = document.body.scrollHeight;

var scrollPoint = window.scrollY + window.innerHeight;

// check if we hit the bottom of the page
if(scrollPoint >= totalPageHeight){
console.log("at the bottomz");
data.isScrollBottom = true;
There are no replies made for this post yet.
Be one of the first to reply to this post!

Q&A Forum - Tips

The purpose of the Temenos Journey Manager platform (TJM) Q&A forum is for all clients and partners to seek help...

Read More

Not a member?

Register to ask a question and access to more content.

Join now

Looking for something else?

You can request access to:

  • Courses
  • Full Release Notes
  • Product Downloads
  • SDK

Request access

Leader Board

Mark Murray
User's Points: 1376
Lin Vanoevelen
User's Points: 1046
Julio Berrueco Pinto
User's Points: 715
Matthew White
User's Points: 398
Chad Thomas
User's Points: 300