Forum Discussion

KyleClements1's avatar
21 days ago

Available Now - Set Completion Requirements

Hello everyone 👋

You can now set completion requirements for Code blocks! This links them to Continue buttons, just like other block types.

To do so:

  1. Add a Code block to your course.
  2. Toggle “Set completion requirements” on.
  3. Copy and paste the revealed code snippet into your project. 

Note: This will only work with Continue buttons that have an appropriate completion type set (e.g. “Complete block directly above”).

Learn more here. Let us know about your experience! We are monitoring these forums as well as the Share feedback survey.

Thank you!

Kyle

6 Replies

  • ded2's avatar
    ded2
    Community Member

    Does the completion element only work in zipped HTML code files? I got it to work this way (I had some images in the file), but it didn't seem to work when I just cut and pasted HTML with the snippit code without zipping the file. Thanks! 

  • Yess!!! The update that I was waiting for. I’m working on a few demos to share. One of these is a reflection panel with a text entry field. An interaction that people mostly skip…with this update!? No way, Jose! We need your reflection ;)

  • I'm not clear on where the completion code snippet should be pasted into the existing code--can you clarify? And can we do this directly in Rise if we have the original code already pasted in the code block?

    • KyleClements1's avatar
      KyleClements1
      Staff

      Great question!

      This snippet of code tells Rise that the block is “complete.” Where you add it depends on how your interaction works.

      For example, if you’re building a personality quiz with a Code block, you might run this line of code right after learners see their quiz results.

      If you’re comfortable editing your own code, you can add it directly in the Add code text editor.

      Alternatively, if you’re using a GPT to help build your experience, you can explain what this snippet does and ask it to insert the code in the appropriate place.

      We'll be adding examples to our "getting started" course soon!

      • KatieWood-763d1's avatar
        KatieWood-763d1
        Community Member

        Thank you. After posting my question, I did end up asking ChatGPT exactly where to put the snippet and it showed me and that did the trick. :)