Having trouble using a field from model as Custom Label for a different field

Hello - I am trying to reference a field from my model as the label for another field but running into issues. Both fields are in a single model, and I'm querying on page load. Using the field selector, I get {{ }} around the field name, and leave it as is in the 'Custom label' area. When I check the preview or the environment it is blank. Ultimately, I'd like to have my label read 'Quantity of {{Product_Unit}}' but it's not working out.

Has anyone experienced this? It seems straightforward but keeps coming up blank. Thanks!

Best Answer

  • Try:

    {{$Model.YOUR_MODEL_NAME.data.0.YOUR_FIELD_NAME}}

    this tells it to get the value from your specified field from the first row (Row 0) from your specified model

Answers

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!