The Symfony MoneyType Field renders as input type=\"text\"
which allows a user to type whatever they want into the field.
How can I override this to ren
You can customise how the MoneyType is rendered.
{% extends 'form_div_layout.html.twig' %}
{% block money_widget %}
{%- set type = type|default('number') -%}
{{ parent() }}
{% endblock %}
Sources:
http://symfony.com/doc/current/form/form_customization.html#method-2-inside-a-separate-template https://github.com/symfony/symfony/issues/22937#issuecomment-304609466