I know I can validate the maximum number of characters by using the ivy validation mechanism.

Put I want to prevent that the user even can input more than the allowed character.

asked 12.01.2015 at 15:24

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857
accept rate: 74%


You can specify the data type of an RTextField. A data type can define how many characters are allowed to input. See the following example to limit the maximum number of characters to 5:

textField = new RTextField();
textField.setDataType(new ULCStringDataType(5));
link
This answer is marked "community wiki".

answered 12.01.2015 at 15:27

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857
accept rate: 74%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×40

Asked: 12.01.2015 at 15:24

Seen: 2,228 times

Last updated: 12.01.2015 at 15:27