eZ Community » Forums » eZ Publish 5 Platform » Render form from eZ Publish 5
expandshrink

Render form from eZ Publish 5

Render form from eZ Publish 5

Friday 01 December 2017 10:42:33 am - 1 reply

Hi, i have small issue  about rendering form, exactly i am rendering form   but i can't get description  value . it is sample how i am rendering form:

{{ form_start( form ) }}    {{ form_errors( form ) }}
     {% for form_child_key, form_child in form.children %}
         This is label;         {{ form_child.vars.label }}
         and here i whant to render description liek this:
         {{ form_child.vars.description }} but this is not working
     {% endfor %}
{{ form_end(form) }}

Modified on Friday 01 December 2017 10:44:43 am by Nick Nick

Wednesday 17 January 2018 2:44:59 pm

How is your form defined?

 

Key "description" for array with keys "value, attr, form, id, name, full_name, disabled, label, label_format, multipart, block_prefixes, unique_block_prefix, translation_domain, cache_key, read_only, errors, valid, data, required, max_length, pattern, size, label_attr, compound, method, action, submitted, multiple, expanded, preferred_choices, choices, separator, placeholder, choice_translation_domain, is_selected, placeholder_in_choices, empty_value, empty_value_in_choices" does not exist

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from