FORMfields, the premiere web framework
Support Home | Knowledge Base | Documentation | Forums | Contact Us
FORMfields & FORMgen :: Languages

Adding Special Characters to a PersonNameField

(2040 views. Last Updated: 2007-09-21 1:11 PM)

Here is an example of how to include special characters in a PersonNameField. This method can be used with most fields' regular expression strings.

Simply open the /FORMfields/src/fields/PersonNameField.php file and add the accepted characters to the regular expression. In this example, we add: ó, ü, á
class PersonNameField extends TextField {
  var $REGEX_PERSON_NAME = "/^(-| |\\.|_|'|[0-9]|[a-z]|ó|ü|á)+\$/i";
Support | Earn Money
Copyright © 2005-2020 Brain Book Software LLC.
Built with FORMfields, the premiere web framework.