Personality Quiz

Personality quiz - always gives first personality


I've made a personality quiz: (I have tried to attach the h5p file but it's too big)

No matter what answers are chosen, it always gives the same answer. I have experiemented with changing the order of the personalities in the edit mode and it appears that it always picks the first one listed.

The types are correctly listed, I assume? They look like: 'Placement,Project,Internship' etc.

Is this a bug or have I used it incorrectly?

Many thanks

Personality Quiz - increase max answers from 10 to 20

Hi guys,

I'm wondering if anybody knows how to increase the max answers for the personality quiz from 10 to 20?

In the "semantics.json" file I can clearly see that on line 119 is the number limit, however if I increase it and then us the upload option when creating new content it doesn't seem to make a difference. My coding knowledge is minimal and I've only ever made tweaks to code like this.

how to change a field widget


I would like to customize the H5P.PersonalityQuiz content type so that one (or some, or all) of the fields of type "text" can be made to allow a few basic html tags (e.g., strong, em, a, etc.). I use Drupal and am trying use hook_h5p_semantics_alter to add the 'html' widget to every field of type "text," but clearly I'm not doing it right. 

Here's what my custom module (called mhl_h5p_mods) has right now: