When I create a dialog with a text input field, the ‘initial’ field seems to be limited to 32 characters. This means that if I prompt a user for (say) a multiline text value that can have a 100 character sentence, when I ask them to update it I cannot put the current value into as the initial value of the field.
To reproduce, simply create a dialog with a text field with an initial value of more than 32 characters or so (50 certainly will do it).
Linked issues
is duplicated by 1
Comments 3
When I create a dialog with a text input field, the ‘initial’ field seems to be limited to 32 characters. This means that if I prompt a user for (say) a multiline text value that can have a 100 character sentence, when I ask them to update it I cannot put the current value into as the initial value of the field.
To reproduce, create a dialog with the following content, in (say) the file “dialog/test”:
{
"type": "notice",
"title": {
"text": "Notice"
},
"inputs": [
{
"type": "text",
"label": "Multiline Text",
"key": "multiline_text",
"multiline": {
"max_lines": 5
},
"initial": "sit amet, consectetur porttitor!!"
}
]
}
Now log into the world. You will not be allowed to due to an error (“Errors in the currently selected data pack…”).
Now edit the dialog to remove one character from the “initial” field (such as one of the “!” chars). Then log in. You will be allowed to do so. (Also, the dialog can be displayed, if you care to).
(I will note that this was previously reported as MC-298586, but I did not receive a notice about you needing more detail about how to reproduce the fact that your code has a 32 char limit on a field. Since I cannot reopen that bug, this new bug was created.)
You missed the max_length
key. If you change your dialog to have a shorter initial value, you will see that you, in fact, cannot enter the text into the dialog because of the same length restriction.
The following command works without issue:
/dialog show @s { type: "notice", title: { text: "Notice" }, inputs: [ { type: "text", label: "Multiline Text", key: "multiline_text", max_length: 91, multiline: { max_lines: 5 }, initial: "sit amet, consectetur porttitor!!! :)" } ] }
max_length
has been set to 91 in this case.
We do not have enough information to reproduce this issue.
Please include the following information to help us understand your problem:
Please also attach any needed commands, add-ons/behavior packs, data packs, resource packs, screenshots, videos, or worlds needed to help reproduce this issue.
Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.
This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines -- 💬 Community Support -- 📧 Mojang Support (Technical Issues) -- 📧 Microsoft Support (Account Issues) -- 📓 Project Summary -- ✍️ Feedback and Suggestions -- 📖 Game Wiki