Hey,
Thanks for the answere.
Maby i should explain the problem a bit more:
So first i remove the phone-number from the contact-form.html.twig by commenting out the block:
{#
{% block cms_form_contact_input_phome %}
{% sw_include '@Storefront/storefront/element/cms-element-form/form-components/cms-element-form-input.html.twig'
with {
fieldName: 'phone',
required: true,
additionalClass: 'col-md-6',
label: 'account.personalPhoneLabel',
placeholder: 'account.personalPhonePlaceholder'
}
%}
{% endblock %}
#}
After that i clear the cache. So my frontend take over the change (the phone number field is no longer visible).
After that i change the email-templete in the settings. I remove the phone-number part.
So now i want to use my contact-formular on the frontend. I fill in all the visible fields (the phone number is not visible) and click submit.
I get an errror message: “This value should not be empty”.
If i add the phone-number back to the form and fill out the field everthing works fine.
I guess there is a validation-script or something. This script wants an input for the phone-number but there is no phone-number so the script returns an error message.
What is the usal way to deal with that problem?
We need to remove the phone-number cause of data protection.
Thanks for your help!