How to: Dynamically bind an element to a label

Created by Joshua Miller, Modified on Mon, 24 Mar at 10:38 PM by Joshua Miller

Adding an element with the attribute dynamic to an HTML enabled label allows unique features such as HTML formatting for the label and field.

Instructions

  1. Navigate to the Form for which the HTML label embedded field with be added.
    Module → Module Name → Forms (tab) → Form Name 

  2. From the palette on the right, drag and drop or select the '+' to add the label to the form.

  3. In the label Placeholder Text add

    <span dynamic><input style='vertical-align: bottom;' ng-model='form.data.customBool1' type='checkbox'> Label <b>text</b> <font color='red'>here</font> </span>

    Note: Ensure the field is reserved and not already in use on the Field List.
    (In this example customBool1)


    Open image-20191211-162922.png



  4. Save the form, and open it to verify the field is rendering and functional.

 

This method of embedding a field through the label allows for custom formatting such as selective Bold text or Color/Size. 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article