The getConstraints() method is a method of the TextField class. It is used to extract the value of a constraint from a TextField. A constraint is used to restrict the type of data that a TextField can accept. Some of these constraints are listed below:
- ANY
- PASSWORD
- EMAILADDR
- PHONENUMBER
The general syntax of the getConstraints() method is as follows:
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
