ZOHO Desk ASAP assistant: scroll article depending on page action

ZOHO Desk ASAP assistant: scroll article depending on page action

Hello, 

We are implementing the ASAP assistant in our web application. 

We plan to set up a specific article on some pages of our web app, and set up ASAP so that it opens directly the corresponding article. We found how to do this with javascript (thanks to https://www.zoho.com/desk/developers/asap/index.html#view-article-in-addon )

To go further, we would like the article in ASAP to scroll to specific part of the article depending on user action in the page of our app. (For example:  a page with a form opens the corresponding article, as the user fills the form the article scrolls to the part of the article describing the current field). 

Using javascript dynamically is OK for us, what we are looking for is the way to scroll the article by code and the best way to have anchors in the article (we could use H1, H2, H3 titles like the way it works in the portal). 

Thank you in advance,

Ronan