Hello everyone, I have created a note taking facility in my course to which the learner can visit and add notes as much as they want. The issue is that by default when users click into a data entry field which already has text entered into it the text is selected by default. This can cause errors in that previous notes can be deleted in error. I have worked around the error bit by creating variables to restore the overwritten or deleted entries. But it would be so much simpler if the existing entries were not selected by default. Can we change this default setting and if so how?
I don't think there is a way to deselect the text. You might want to consider changing the way you have implemented the note taking feature.
James Kinsley has come up with a really nice way to append text which completely solves the problem you are having. It involves using a some JavaScript and making some modifications to some of the files in the published output but it is really easy to implement.
Here is a link to James Kinsley's blog post on how to do it.
Really interesting solution, however it still failed to work in Internet Explorer and the Screener no longer works so I am not sure I am doing it right.
Hi David, the Screener still works for me. I think James mentions that it fails on IE so he created a fix which requires editing the user.js file in the Storyline output after you publish your project. The code you have to copy into the js file is on his blog below the screener.
Yes, you are correct Nancy, and that is what I did do. When I then try to play the local publish (with updated user.js) in IE, it fails. If I upload the published file (with updated user.js) to Articulate Tempshare and then run it in IE, it works. I think an important caveat to note with this hack is that it entirely depends on your local browser security settings and local security policies put in place by your Corporate IT folks. My work environment apparently prevents local js from executing hidden iframes in IE.
7 Replies
I don't think there is a way to deselect the text. You might want to consider changing the way you have implemented the note taking feature.
James Kinsley has come up with a really nice way to append text which completely solves the problem you are having. It involves using a some JavaScript and making some modifications to some of the files in the published output but it is really easy to implement.
Here is a link to James Kinsley's blog post on how to do it.
https://elearningenhanced.com/blog/2013/08/05/append-new-text-storyline-variable-and-print-variable
Nancy thank you for the reply which as you say did solve my problem. Thanks to James too.
Really interesting solution, however it still failed to work in Internet Explorer and the Screener no longer works so I am not sure I am doing it right.
Glad to hear it Joe :) Thanks for the update.
Hi David, the Screener still works for me. I think James mentions that it fails on IE so he created a fix which requires editing the user.js file in the Storyline output after you publish your project. The code you have to copy into the js file is on his blog below the screener.
Yes, you are correct Nancy, and that is what I did do. When I then try to play the local publish (with updated user.js) in IE, it fails. If I upload the published file (with updated user.js) to Articulate Tempshare and then run it in IE, it works. I think an important caveat to note with this hack is that it entirely depends on your local browser security settings and local security policies put in place by your Corporate IT folks. My work environment apparently prevents local js from executing hidden iframes in IE.
Hi David, I should have mentioned this - it fails for me as well when I run locally. This is often the case with js. It makes testing a pain for sure.
This discussion is closed. You can start a new discussion or contact Articulate Support.