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

Question

Question

Using Variables in Custom html control using javascript

asked on February 3, 2016

Hi,

I am using two forms,First form is for approval process and in second form,i am using only custom html controls to show the data,i think its possible to use the variables from the previous form into the custom html controls of second form using javascript.can anyone help me how to assign variables to the custom html controls?

0 0

Replies

replied on February 3, 2016

You don't actually need javascript for this. You can simply reference the variables using the interface.

1 0
replied on February 3, 2016

Hi Chris,

I have found that this method can be used for fixed variables such as Current User Name.  But it does not work for Field Variables.  They always appear as blank.  I am using a Default value in the field to test this.

The variable shows in the field on a submitted form but not in Custom HTML.

e.g.

<p>Some data {/_currentuser_display} {/dataset/Image_Select}</p>

where image select = any value, shows

  Any suggestions?

0 0
replied on February 3, 2016

Thank you again Chris..that's worked for me..

0 0
replied on February 4, 2016

Hi Noohul,

The variables work in the Custom HTML of your second form because the variables/tokens were created in the first form. 

The variables will not appear before the first submission unless they have been initiated by a workflow or JavaScript.

1 0
replied on February 26, 2016

I want to piggy back to the question that was asked.  Do you guys know of a way to pull in additional user profile information under the \_currentuser_display => CurrentUser?  OOTB it can pull in the Name, UserName, and eMail.  I want to automatically populate fields like Division, Phone number automatically from the form without having to run a workflow to get them.

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

Sign in to reply to this post.