You are viewing limited content. For full access, please sign in.

Question

Question

Step Variables - Need to access the varialbe value but don't know how

asked on September 19, 2016 Show version history

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;

 

0 0

Replies

replied on September 19, 2016

For the built in process variables used in field default values, once the form is submitted, the value will be parsed and stored as value for the field, so it won't be updated at later step. For the built in process variables used in Form description of Custom HTML, since their value won't be stored, it will always be updated with the latest value.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.