Question & Answer
Question
Can I limit the maximum number of characters that can be entered into a field in mobile?
Answer
The maximum number of characters that can be entered in a field is defined in the DB Configuration application. However, you can limit the number of characters to fewer than what is defined in the configuration. For example, a
field might be configured in Database Configuration to hold a maximum of 12 characters. You can change the limit to any number less than 12. You cannot expand the field to hold more characters than configured in the database.
To limit the field to fewer characters, add the ''maxdatalength'' attribute to the <textbox> tag. The following example restricts the field to two characters.
Example:
<textbox id="wodesctxt5" dataattribute="WOPRIORITY"
maxdatalength="2"></textbox>
Run importall and packagemobile after making the changes.
Redeploy your new jar files.
Was this topic helpful?
Document Information
Modified date:
23 June 2018
UID
swg21404697