Skip to content

Commit d968f20

Browse files
committed
Merge pull request #728 from renuo/master
Add MaxLen property to AcroForm text fields
2 parents b5d5339 + 1905071 commit d968f20

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

plugins/acroform.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,16 @@ AcroForm.TextField = function () {
13101310
*/
13111311
//this.doNotScroll = false;
13121312

1313+
var _MaxLen = false;
1314+
Object.defineProperty(this, 'MaxLen', {
1315+
enumerable: true,
1316+
get: function () {
1317+
return _MaxLen;
1318+
},
1319+
set: function (val) {
1320+
_MaxLen = val;
1321+
}
1322+
});
13131323

13141324
Object.defineProperty(this, 'hasAppearanceStream', {
13151325
enumerable: false,

0 commit comments

Comments
 (0)