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

Question

Question

Pull Variable names for Label

asked on April 23, 2019

Is it possible to pull variable names for field labels? I tried it and it is not pulling the variable value. Thanks.

 

Priya

1 0

Replies

replied on April 23, 2019

I am storing the value in a single line field. The field is populated using lookup rule. Then, I have that variable plugged in as field label. Thanks.

 

Priya

1 0
replied on April 23, 2019 Show version history

Variables will only work in field labels if they were populated in a previous submission. The "dataset" values reference what is stored in the instance history for the form, not the active content.

As an example, if I submit a form with "1" in Field1, when I load the next step it doesn't matter what changes I make, dataset\Field1 will remain equal to "1" until I actually submit the form again.

0 0
replied on April 23, 2019

Ok. So, what do you suggest if I have to plug in a variable for field label please?

 

Thanks

Priya

0 0
replied on April 23, 2019

If you need the label to change dynamically, you'll need to use javascript to attach a change event to the source field and update the label text when it changes.

1 0
replied on April 23, 2019

Thanks

0 0
replied on August 28, 2019

Hi Priya,

I'm having a similar request from my client.

Have you managed to add variable values into field label?

If yes, i would appreciate if you could share your solution.

Thanks in advance.

0 0
replied on August 29, 2019

Hello,

  I have not played with that yet, thanks.

 

Priya

0 0
replied on June 22, 2020

You have the wrap the {/dataset/variable} in a data bind.  Then it will work!

 

<span data-bind-attr="variable">{/dataset/variable}</span>

 

1 0
replied on April 23, 2019

What exactly are you doing to try and pull the values?

0 0
replied on March 31, 2023

Did this work for anyone? I must be missing something simple... :-)

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

Sign in to reply to this post.