Is it possible to pull variable names for field labels? I tried it and it is not pulling the variable value. Thanks.
Priya
Is it possible to pull variable names for field labels? I tried it and it is not pulling the variable value. Thanks.
Priya
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
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.
Ok. So, what do you suggest if I have to plug in a variable for field label please?
Thanks
Priya
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.
Thanks
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.
Hello,
I have not played with that yet, thanks.
Priya
You have the wrap the {/dataset/variable} in a data bind. Then it will work!
<span data-bind-attr="variable">{/dataset/variable}</span>
What exactly are you doing to try and pull the values?
Did this work for anyone? I must be missing something simple... :-)