{ "id": "167427", "key": "AC-4938", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-05-05T13:17:24.000+0000", "created": "2017-05-03T14:52:59.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-14T14:00:09.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Add support for the \"maxLength\" property of the TextField shown inside the AlertDialog when AlertDialog style is set to Titanium.UI.iOS.AlertDialogStyle.PLAIN_TEXT_INPUT", "attachment": [], "flagged": false, "summary": "Support \"maxLength\" property for TextField inside AlertDialog ", "creator": { "name": "ksouthworth", "key": "ksouthworth", "displayName": "Kevin Southworth", "active": true, "timeZone": "America/Detroit" }, "subtasks": [], "reporter": { "name": "ksouthworth", "key": "ksouthworth", "displayName": "Kevin Southworth", "active": true, "timeZone": "America/Detroit" }, "environment": null, "comment": { "comments": [ { "id": "419055", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you share the native docs on this?", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-05-03T19:50:28.000+0000", "updated": "2017-05-03T19:50:28.000+0000" }, { "id": "419176", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is no native behavior and therefore we can not support it in the Core. You could just validate the input in your {{change}} event, like this:\r\n{code:js}\r\nmyField.addEventListener('change', function(e) {\r\n const maxLength = 10;\r\n\r\n if (e.value.length > maxLength) {\r\n this.value = this.value.substr(0, maxLength);\r\n }\r\n});\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-05T13:17:18.000+0000", "updated": "2017-05-05T13:25:28.000+0000" }, { "id": "440754", "author": { "name": "rkanmani@comerica.com", "key": "rkanmani@comerica.com", "displayName": "Kanmani Raja", "active": true, "timeZone": "America/New_York" }, "body": "Hello Hans,\r\n\r\nCould you tell me how to access the TextField? I don't see an id attached to the text field. We need an id to attach a change event listener.\r\n\r\nThanks,\r\n", "updateAuthor": { "name": "rkanmani@comerica.com", "key": "rkanmani@comerica.com", "displayName": "Kanmani Raja", "active": true, "timeZone": "America/New_York" }, "created": "2018-08-14T14:00:09.000+0000", "updated": "2018-08-14T14:00:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }