In response to a forum request at Symantec Connect, I came up with a method of mimicking the functionality of an html anchor tag on a Workflow form. What this does, functionally, is scrolls a form to a specific position.
var labeltwo = document.getElementById('Label2'); window.scrollTo(0, parseInt(labeltwo.style.top));
As a side note – “window.scrollTo()” sets the working context to “window”, being the form itself. If you need to jump around inside a specific scrolling element (such as a ListSelect component), set the context properly to do so. As an example, with a ListSelect component with a Control Id of “ListSelect1”, we would get the element first:
var list1 = document.getElementById('ListSelect1');
Then, set the context to only the ListSelect element:
Check the Demos page for the Workflow demo project.