Forum Discussion
Rise 360’s new Custom Code Block — how far can it go to replace the need for Storyline blocks?
Hi John,
I applied the updated code, thank you, and it worked beautifully. I didn't have an interest to save to PDF, so I didn't pursue further.
Here's what I did notice. I tested using the code for additional reflections in different lessons in a Rise course and when I entered my test text entry in one lesson and then went to the next lesson with the reflection code, I saw my text entry in the reflection text box from the previous lesson. When I inserted new text in the 2nd reflection then went back to the first, my text entry from the second lesson carried over to the first.
I tried some other code assistance, but to no avail, could we solve it. Do you happen to have any ideas on what might clear the reflection entry for each time the reflection appears in the course?
Just thought I'd try here.
Thank you! Luv your work!
Lisa
If you are retrieving the previous lesson's text input it may be that you aren't changing the stored variable name for each lesson. In the code there is a line:
// Each lesson uses a unique key (example: eNotes1, eNotes2, eNotes3)
const STORAGE_KEY = 'eNotes1';
You need to change this for each lesson. So lesson 1 would be eNotes1, lesson 2 would be eNotes2 and so on.
Or am I misunderstanding the problem??
Best regards, John
Related Content
- 3 months ago
 - 11 months ago
 - 3 months ago