<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How can I limit the number of characters in a RTextField?</title><link>https://answers.axonivy.com/questions/1117/how-can-i-limit-the-number-of-characters-in-a-rtextfield</link><description>&lt;p&gt;I know I can validate the maximum number of characters by using the ivy validation mechanism. &lt;/p&gt;
&lt;p&gt;Put I want to prevent that the user even can input more than the allowed character.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1117/how-can-i-limit-the-number-of-characters-in-a-rtextfield" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 12 Jan 2015 15:27:13 -0500</lastBuildDate><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/1117/how-can-i-limit-the-number-of-characters-in-a-rtextfield/1118</link><description>&lt;p&gt;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:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;textField = new RTextField();
textField.setDataType(new ULCStringDataType(5));
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Mon, 12 Jan 2015 15:27:13 -0500</pubDate><guid>https://answers.axonivy.com/questions/1117/how-can-i-limit-the-number-of-characters-in-a-rtextfield/1118</guid></item></channel></rss>