add hyperlink to Quiz finished: Your result:

I have created a question set and would like the user to be able to click a hyperlink if they pass anda different hyperlink if they fail. I have tried entering the hyperlinks into the "Quiz passed greeting" and the "Failed comment" but they do not work as links, only displaying as text so not clickable.

I have created 4 question sets and if user passes part 1, I want to be able to ahve a link to part 2, and so on. If they pass part 2, they get a link to part 3 adn so on. If they fail , they get taken to a certain page usinga different hyperlink.

How can I do this?

falcon's picture

I've added a fix for this now. Will be part of our next release. (Not the one that gets announced today/tomorrow, but the next one...) Thank you for reporting. You will in the fixed version be able to add links using the wysiwyg text editor.

Thanks so much that would be great. Looking through today's updates I can see you have been very busy, and it's a very exciting project! Do you have an approximate date for the next update?

falcon's picture

We do a very thorough round of testing ahead of each release and only release when we feel the product is solid. This makes it hard to predict when the release is ready. My guess is february. We're going to do much smaller releases in the future to be able to do more frequent releases.

 

Thanks very much, I'm looking forward to that release! Also I think you are in Norway? If you want free access for you and your team to my English learning materials  either now or in future as a thank you for your great work, please let me know. You can see an example lesson here 

https://www.dailystep.com/en/lesson/advanced-english-conversation-advanc...  

plus we have audio drama such as this one

https://www.dailystep.com/en/extra-lessons/smithers-boyle-investigate-fu...

 

Hi Falcon

I was just wondering if this function (add different hyperlink depending on result of quiz/question set) has been added yet. I have tried to see this in the question set but can't see it yet. Also how can I find out what is the latest version of H5P so that I can make sure that I have it? I did update H5P recently but not sure if I ahve the latest version.

Thanks,

Jane

falcon's picture

Hi Jane,

I tested it here on H5P.org and it is there for passed comment and failed comment it seems. The latest version of Question Set is 1.6.5. It isn't easy to figure out what version is the latest, but all libraries are listed in the library administration section of your site. /admin/content/h5p on Drupal.

 

Hi Falcon,

I am trying to add hyperlinks to quiz question set feedbacks, but cannot see how to proceed. I found this old post, I am running H5P on WordPress 5.7, and I use Quiz Question Set 1.17.5. 

I don't see any button to add hyperlinks in text fields, and if I enter them manually, they are not displayed appropriately.

Please give feedback on how to proceed to make this work.

I have also posted same question for H5P branching scenario here, https://h5p.org/node/1176134, but got no answer yet.

The whole idea is to be able to have trainings where users move from web page to web page based on quiz results.

otacke's picture

Hi atriaforever!

The (overall) feedback fields are plain text fields, not HTML fields, so they can display nothing but plain text. I can see that having a more versatile feedback field (including links maybe) could be useful. It's no complicated change (just a little tedious, because you would have to change all the content types semantics.json file a little, ideally also add an upgrade script just to change the parameters cleanly, and then add a stylesheet tweak to H5P.Question's feedback text wrapper - and then all the content types and some others that use those will have to be re-released in a new minor version). If the H5P core team can name the editor buttons that should be available, someone could easily do the work except for the review/release part.

Cheers,
Oliver

Hello Otacke.

That would be great! How can I help, I should have some time available last quarter this year.

Otacke, I just noticed hyperlinks are available for Quiz question set on fields "Message displayed if answer is / is not selected" of each question answer, but not on fields "Feedback for defined score range". It would be great to also have it on these fields, so user navigation could be triggered by score.

otacke's picture

Hi!

The "Feedback for defined score range" field was the one that I had in mind, because it's used in many content types.

Best,
Oliver

Hi Otacke,

In fact I only need it on that field. If this is a quick developement, let say 1 or 2 days, I may handle it if you tell me how to proceed.

Otherwise, it would be fine if this could be implemented quickly by the community, it would probably interest many people using H5P and WordPress to build multi page trainings with navigation based on quiz results, kinda serious games.

otacke's picture

Hi!

Telling you what to do would actually take longer than doing it ;-) And I am not a member of the H5P core team, so you already mentioned me by "community" ;-)

It's not so much the changes that someone in the community (e.g. ) can make that are problematic, but the strings attached to it for the H5P core team. First and foremost, they should decide if that change should be done and, if yes, what text styling the HTML editor should allow (e.g. bold, italic, etc.).

Then and only then it makes sense that someone in the community implements that once (tweak H5P.Question, change the semantics.json of one content type involved - a couple of lines - write a tiny function for upgrades.js and then basically copy and paste that to the repositories to other content types where applicable). Still not daunting.

But now, the H5P core team will have to review that code thoroughly, potentially find issues and run into an improvement loop, they need to test the changes, and  they need to deploy it for all the content types involving what comes with release management - that will take (much) longer than implementing the changes! And if they have bad luck, then some problem slipped through, and later on they will have to fix things as they are the maintainers.

The last part is the bottleneck that many people requesting features and changes don't consider. They think it's only about delivering code, but even if that comes from the community, there's more to that process. I am also not saying that the process is perfect. One could discuss getting help with reviews and testing from the comminity as wel, etc. but that's a different story.

Long story short: If the H5P core team doesn't decide on if and how they want to have that feature, there's nothing that you or me could sensibly do if you don't want to risk wasting your time.

Best,
Oliver

Hi Oliver,

I have submitted a feature request: https://h5p.org/node/1183008 

I have upgraded to questions set 1.6.5 , the latest version. Now when I try to edit some fields , they just disappear as soon as I click into the field itself to start editing (i.e. click to get my cursor in place). This happens both when I create new questions or if I try to edit old ones. The fields that disappear are:

Question (where I ask the question)

Text (all text fields for questions)

Passed comment

Failed comment

This is is the error text that appears after the field I am trying to edit has disappeared:
"Question is required and must have some text or at least an image in it."

My plan after this is fixed is to add hyperlinks into the 'passed comment' and 'failed comment' sections so that I can give users some navigation depending on their result, as you mentioned that this is now working.

 

falcon's picture

Very strange. In which browser(s) does this happen?

Hi Falcon,

It does not seem to depend on a browser ( I've tried Firefox and Chrome) . I am using Drupal 7. I  just looked in   admin/config/content/formats/add

and saw that there is an H5P content field (see attached screenshot) - do I need to enable this for your html text ediitor to work and do you think this could be the problem? I am reluctant to try it and see what happens today as our main developer is away . But if you advise that this needs to be enabled, i will try it in a different environment.

Thanks,

Jane

 

Hi Falcon,

My suggestion above does not seem to have worked -I tried it after all. In case it is relevant I am using these text editors:

Full HTML TinyMCE 3.5.10

Filtered HTML CKEditor 4.0.2.5339059

What are you usingg for H5P and could there be a clash?

Jane

falcon's picture

Hi! We use CKEditor for H5P. Would it be possible for you to give me access to your site where this happens? For instance via the contact form?

Hi Falcon

First I am really sorry for the late reply to this - I have been moving to a new town and everything in boxes! Second - yes I will send you site access to our Stage site in a moment so you can see what I mean. I will do this via the contact form.

Thanks so much,

Jane

HI Falcon

Is it possible to have a version of Questions Set in the H5P content types that can be created on the H5P website and then embedded? This would help me to see is actually how it works for you and then I can tell if there's anything wrong with my configuration . After updating my site I can now use the text editors but still can not add a hyplerlink into a quiz body or into the pass or fail comments.

Thanks in advance

Jane

fnoks's picture

Hi Jane,

You may create the question set here on h5p.org, and embed them on your site using the embed code.

I have tested adding links to the pass and fails comments, by using the hyperlink button on the toolbar. That works fine for me.

Hi Fnoks,

Thank you for your reply. I can't find Question Set in the list of available options when I try to create interactive content on the H5P.org site at https://h5p.org/node/add/h5p-content 

Could you please let me know where is the option to create a Question Set? 

Thanks very much,

 

Jane

thomasmars's picture

Some of the content types are restricted on H5P.org, this is because they are a bit harder to use and require some H5P authoring experience. H5P.org is intended as a page for trying out the authoring tool, not a place to create all your content.

If you want to enable creating Question Set I suggest you set up a server with the H5P plugin to leverage the full power of H5P! :)

The installation guide is a good place to start.

- Thomas

Hi Thomas

I do have the H5P plugin set up on my server and I use H5P content created there. I just want to see an example of your question set with the hyperlink in the pass/fail comment field as I can not seem to replicate this.Do you have a link to a page with an example of a question set that has the pass /fail comment with a hyperlink? Sorry to bother you but I really want to make this work on my server.

Thanks

Jane

I can now add the hyperlinks to the pass/fail comments (the issue was that I had not enabled a text editor in WYSIWIG)  for h5p content type input.

However, now I can not get the  pass /fail comments to display at the end of my Question Set. My Question Set is here https://www.dailystep.com/en/node/65229 

At the end of the Quix, it just shows solution and retry button. I guess that disabling the Check button for each question as the user progesses through the quiz might allow the Pass/Fail message to show, but I can't see how to disable the Check button. 

Please advise if possible, thank you.

Jane

fnoks's picture

Hi,

You are using an old version of Question Set. You should upgrade to the latest version available on h5p.org. Then this should be working as expected :)

for some reason my link https://www.dailystep.com/en/node/65229  goes to 'page not found' in my last comment,but pasting the link into browser address bar works.

 

I am trying to add a hyperlink at the end of the quiz and found this post from 2016- but I can't figure out how to do it in the quiz set now. There's no option for anything besides text. Is it still possible to add a hyperlink?