To ask users for more information on the Request create and edit forms, you can add your own input fields and store the values in custom attributes.
For example, if you want to ask for a phone number, create a custom attribute "Tel" (Phone) in the support project and edit the Request creation form (Administration - Settings - Texts) as follows:
{% block content -%}
<section class="card-section">
<div class="container">
<div class="col-lg-12 col-lg-offset-0">
<div class="card text-center">
<div class="body">
{{ form_start(form, {"attr": {"class":"form-horizontal","action":path('issue_create')}}) }}
{{ form_widget(form) }}
<div class="control-group">
<div class="controls form-group">
<div class="col-md-12">
<input type="text" name="PhoneNumber" required class="search-field" placeholder="Телефон" title="Телефон">
</div>
</div>
</div>
<div class="row">
<input type="submit" class="btn btn-success" value="{{ 'issue.create'|trans }}">
</div>
{{ form_end(form) }}
</div>
</div>
</div>
</div>
</section>
{% endblock %}
The name attribute of the input tag must match the reference (system) name of the custom attribute in which the value entered by the user will be stored. The required attribute lets you specify that the attribute is mandatory.
To place the attributes in a different order (Name, Phone, and then the remaining fields), implement the form as follows:
{% block content -%}
<section class="card-section">
<div class="container">
<div class="col-lg-12 col-lg-offset-0">
<div class="card text-center">
<div class="body">
{{ form_start(form, {"attr": {"class":"form-horizontal","action":path('issue_create')}}) }}
{{ form_row(form.caption) }}
<div class="control-group">
<div class="controls form-group">
<div class="col-md-12">
<input type="text" name="PhoneNumber" required class="search-field" placeholder="Телефон" title="Телефон">
</div>
</div>
</div>
{{ form_rest(form) }}
<div class="row">
<input type="submit" class="btn btn-success" value="{{ 'issue.create'|trans }}">
</div>
{{ form_end(form) }}
</div>
</div>
</div>
</div>
</section>
{% endblock %}
The Request edit form is configured separately. An example that also uses the phone number is shown below:
{% block content -%}
<section class="card-section">
<div class="container">
<div class="col-lg-12 col-lg-offset-0">
<div class="card text-center">
<div class="body">
{{ form_start(edit_form, {'method':"PUT", "attr": {"class":"form-horizontal","action":path('issue_update', { 'id' : issue.id })}}) }}
{{ form_row(edit_form.caption) }}
<div class="control-group">
<div class="controls form-group">
<div class="col-md-12">
{% set value = showattribute(issue,'PhoneNumber') %}
<input type="text" name="PhoneNumber" value="{{ value }}" required class="search-field" placeholder="Телефон" title="Телефон">
</div>
</div>
</div>
{{ form_rest(edit_form) }}
<div class="row">
<input type="submit" class="btn btn-success" value="{{ 'issue.update'|trans }}">
</div>
{{ form_end(edit_form) }}
</div>
</div>
</div>
</div>
</section>
{% endblock %}