Hiding Interactive Apps form attribute label

I am wondering if it’s possible to not show the label element of the form attributes. In our particular case, I want to have a checkbox that dynamically shows a text_area if the check box is checked. The check box labels what the text_area means so it’s label is redundant.

  add_env_checkbox:
    widget: "check_box"
    label: "Additional environment"
    value: "0"
  additional_environment:
    widget: text_area
    label: ""

The observed behavior is that if the text_area label is not listed, the name of the attribute is used (“Additional Environment” in our case). Same thing if the string is empty (as shown above).

Is there any trick that does not show the label? If it’s not possible through the form.yml, I can also implement it in form.js, if I knew what’s the variable that corresponds to the label element.

Thanks,
Martin

You can set skip_label: true for the attribute in form.yml to hide the label.

1 Like

Excellent, thanks! That did the trick.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.