This question already has an answer here:

How do you create comments for fields in a ui_component form?

I can do it like this when building the form with php:

                'name' => 'url',
                'label' => __('URL'),
                'title' => __('URL'),
                'required' => false,
                'note' => 'Can be an absolute or relative path.'

I can't find how to achieve this in an xml form component.

marked as duplicate by Marius Jul 20 '16 at 20:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You should use notice:

<item name="notice" xsi:type="string" translate="true">

Full example:

<field name="name">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="dataType" xsi:type="string">text</item>
                    <item name="label" xsi:type="string" translate="true">Name</item>
                    <item name="formElement" xsi:type="string">input</item>
                    <item name="source" xsi:type="string">model</item>
                    <item name="sortOrder" xsi:type="number">10</item>
                    <item name="dataScope" xsi:type="string">name</item>
                    <item name="notice" xsi:type="string" translate="true">Enter full store name here</item>
                    <item name="validation" xsi:type="array">
                        <item name="required-entry" xsi:type="boolean">true</item>
  • 1
    looks like notice does not support html tags. do you know any workaround? – Sergey Korzhov May 12 '17 at 14:23
  • 1
    @sergey, <item name="additionalInfo" xsi:type="string" translate="true"><![CDATA[ .. <strong>Note</strong> : Enter note here with html tags.. ]]></item> additionalInfo is alternate of note to add comment or note. – Kanhaiya lal Apr 24 '18 at 13:11

Not the answer you're looking for? Browse other questions tagged or ask your own question.