Magento2 text is not getting converted to lowercase on using the below code in the email template

{{ var data.enquiry_type | downcase }}

How can I achieve this in Contact Us email?

1 Answer 1


Put your syntax in

<span style="text-transform: lowercase;">{{var data.enquiry_type}}</span>

Happy Coding


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.