mojira.dev
MC-300701

text input fields in dialogs cannot hold an initial value that is as long as the current value (v2)

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.)

Linked issues

Comments 3

Hi!
Thank you for your report!

Please check if you can response to the mentioned ticket MC-298586, because we would like to track only one ticket per issue. Once you will confirm that there is no issue with providing required details to the previous ticket, I’ll close this one as Duplicate. Thanks!

Quick Links
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki 

I just copied my details into the older, closed bug. If I had done that originally, would that have re-opened that bug?

Yes, you can either leave a comment or edit the bug using “Edit Report” in the Actions selection. Both will automatically re-open a report resolved as “Awaiting Response”.

I have resolved this one as duplicate of your other report now.

kcrca

(Unassigned)

Unconfirmed

(Unassigned)

25w32a

Retrieved