diff --git a/form/create_custom_field_type.rst b/form/create_custom_field_type.rst index 3b3c378a19f..c8010b6e8d6 100644 --- a/form/create_custom_field_type.rst +++ b/form/create_custom_field_type.rst @@ -153,6 +153,14 @@ link for details), create a ``shipping_widget`` block to handle this: renderBlock('choice_widget') ?> +.. tip:: + + You can further customize the template used to render each children of the + choice type. The block to override in that case is named "block name" + + ``_entry`` + "element name" (``label``, ``errors`` or ``widget``) (e.g. to + customize the labels of the children of the Shipping widget you'd need to + define ``{% block shipping_entry_label %} ... {% endblock %}``). + .. note:: Make sure the correct widget prefix is used. In this example the name should