Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
MyAccount Portlet: field last name is require?
Hi!
I have a question: In liferay 7.0 the field "Last Name" is require or it can be null?
In liferay 6.2 is not required..
Thanks!
In theory, according to the 7.0 Breaking Changes, the idea is that after LPS-48406, Liferay wanted to provide flexibility in determining which user name fields are required based on language. In practice, Liferay ends up requiring last name by default because it's listed in Language.properties, and it is explicitly listed for all of the following languages:
- Language_ca.properties
- Language_de.properties
- Language_en.properties
- Language_es.properties
- Language_fr.properties
- Language_hu.properties
- Language_it.properties
- Language_ja.properties
- Language_nl.properties
- Language_nl_BE.properties
- Language_pt_PT.properties
- Language_zh_CN.properties
You would need to override all of those language properties files if you wanted to re-enable last name for all languages.