There are some built in step variables in Forms that give information as to which step in the process you are on. However I have no idea how to access this data. If I put the data into a field as the default value it will only do it at the Start step. The field will always say Start throughout the entire process. What good is this variable? I need to use it so that I can see who is approving the form.
Either that or I need a way to pass data to the form from the process step, change a variable or something. Just to indicate which step we are on.
Update. I found that using this variable on the form title always shows the updated value. The label doesn't have an ID or class but it is always the first label on the page. So can be extracted this way:
var labels = document.getElementsByTagName('LABEL'); \\Get Current Step Name from Form Title var stepname = labels[0].textContent;