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

Discussion

Discussion

Forms - What is the picker for in the Field Label?

posted on August 4, 2022 Show version history

There is a picker for the field label that seems to let you set the label to be the value of another field.

They want the label to be a calculation but calculation results always end up in the value of the field, so another field above it was created with the calc. However using this picker to pick another field does not seem to do anything, the field value is always blank even when the calc field "Label" has a value.

I guess in short we are asking, how do you use a calculation to populate a field label in Forms?

0 0
replied on August 4, 2022

You can't use a calculation to set the label of a field; if you want to make a label dynamic, you'd need to do so with JavaScript.

The picker is meant for "stored" variable values. For example, if a value is submitted in the Starting Form, then you could use that as/in a label for a subsequent form field.

However, this behaves the same as variables in Custom HTML.

Dataset variables are what is stored for the instance, not the live fields on the form, so they do not update dynamically; they only update after a submission when the server-side data set is updated.

1 0
replied on August 4, 2022

It does seem that these variables assigned to the live fields have current values, even before submission. If I use the same picker in a calculation to pick the same field, I can see the value. They just want to use the picker on the label instead.

Everything looks the same, the picker, and the list, but different results. It is a little counter intuitive.

0 0
replied on August 4, 2022 Show version history

The calculation is not the same thing. The calculations are referencing the "live" values from the form using built-in JavaScript functionality.

The {/.../...} items are static references to server-side data.

0 0
replied on August 4, 2022

Oh, it is just that the symbol I am using is the same >, so there is no clear indiciation that when using it in one place it ignores active data and in another it does not.

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

Sign in to reply to this post.