[msdyncrm_twig] {% form entity="lead" name="Tamiya" mode="create" required=["subject" , "firstname", "lastname" , "emailaddress1"] messages={ "success": "Form submitted.", "error": "Submission failed." } %} {% if form.submission and form.status %}
{{ form.parameters.messages.success ?? "The form has been successfully submitted." }}
{% elseif form.submission and (not form.status) %}
{% if form.parameters.messages.error %} {{ form.parameters.messages.error }} {% else %} {% for descriptor, message in form.errors %}
{{ descriptor }}: {{ message|join(', ') }}
{% endfor %} {% endif %}
{% endif %}
{% endform %} [/msdyncrm_twig]