I've created a project that uses a lot of text-entry boxes and displays all the data entered in a new browser window via Javascript.
The problem is that it seems to be impossible for the end user to edit text in these boxes any in any way other than backspacing from the last character entered.
This is a pretty huge problem, and I'm hoping there's a Javascript workaround. Has anyone done this?
I'm hoping to let users select parts of the text they've entered and change them, like you can in this text edit box (no formatting though!). If you write a paragraph and want to change the first word, it's awful to have to backspace-delete the whole thing and then re-write it! Do I need to program a button to delete a selection and then insert new text into the existing variable text?
Did you know by double-clicking a word will select the entire word? How about adding an instruction by double-clicking a word to edit and press Delete Key your keyboard.
I think there might be a script forcing the cursor to the last character of the text entry. If you don't mind sharing your Story file for that Text Entry slide?
Thanks Matthew, I really appreciate your expertise.
Unfortunately I can only develop in SL, rather than an HTML framework that delivers content to SL (it has to be uploaded to an LMS as a SCORM package).
I think I just need to create a sequence of layers so each data-entry box has a full screen, which will obviate the need for scrolling panels.
Thanks fo much for your quick response to my question and knowledgable response!
The Text Entry area is too small. That is why you decided to add a scroll panel. How about adding a small button on the right and launch a Layer for the Text Entry Input without a scroll panel. It is like a small popup layout just for the input with a close X button. I have also disabled the Text Entry while the Popup is active.
Thanks to both of you. I need to think about the layer idea (one of my slides has 10 data entry boxes!) but that seems to be the only option. I appreciate the help.
11 Replies
Hi Sarah,
How do you want to edit the text? Because there are so many ways to kill a chicken. :)
The user can actually select the text using a mouse and delete or add a button to clear the text entry.
HI Daniel!
I'm hoping to let users select parts of the text they've entered and change them, like you can in this text edit box (no formatting though!). If you write a paragraph and want to change the first word, it's awful to have to backspace-delete the whole thing and then re-write it! Do I need to program a button to delete a selection and then insert new text into the existing variable text?
Thanks for any info!
Hi Sarah,
Did you know by double-clicking a word will select the entire word?
How about adding an instruction by double-clicking a word to edit and press Delete Key your keyboard.
Hi Daniel,
When I double click or click-drag to select text in a published text-entry box, the cursor just jumps to the last character of the last line.
Is there a way to select and replace text other than backspacing from the end?
Hi Sarah,
I think there might be a script forcing the cursor to the last character of the text entry.
If you don't mind sharing your Story file for that Text Entry slide?
Ah, interesting. I have a Javascript on the slide to send the data to a new window for printing, maybe that's it? One demo slide is attached.
I'm not sure why my Javascript for printing the text entered would affect the behavior of the data-entry box, though. The only functions used are:
window.open();
myWindow.document.write();
GetPlayer();
player.GetVar();
window.print();
Yeah, I just made a copy with no Javascript and had the same problem...
I don't suppose you can think of any workaround for this? :D
Thanks!
Thanks Matthew, I really appreciate your expertise.
Unfortunately I can only develop in SL, rather than an HTML framework that delivers content to SL (it has to be uploaded to an LMS as a SCORM package).
I think I just need to create a sequence of layers so each data-entry box has a full screen, which will obviate the need for scrolling panels.
Thanks fo much for your quick response to my question and knowledgable response!
Sarah
Hi Sarah,
The Text Entry area is too small. That is why you decided to add a scroll panel. How about adding a small button on the right and launch a Layer for the Text Entry Input without a scroll panel.
It is like a small popup layout just for the input with a close X button.
I have also disabled the Text Entry while the Popup is active.
See the attached sample for my solution.
Thanks to both of you. I need to think about the layer idea (one of my slides has 10 data entry boxes!) but that seems to be the only option. I appreciate the help.
This discussion is closed. You can start a new discussion or contact Articulate Support.