When Check button is pressed(h5p)

Hi everyone

I'm new to Drupal and i would like to ask something because i m creating my own module( PHP ).

I would like to capture when the check button in an h5p quiz (question set or multiple choice ) is pressed.

How can i do this?

Is there maybe a specific function or an event that is triggered when the check button is pressed?

 

Thanks in advance

Ajax Form Callback deletes all properties

Hi,

I have a form for a single dropdown select that uses a callback on change to update some elements on the page and make a few calls to an API, to update values in the API. Here's the code:

Drupal 7 -> 8 upgrade -- just need book content

I'm dipping my toes into the Drupal 8 waters. I have a Drupal 7 site which I'm going to upgrade to Drupal 8 and complete overhaul the design (building from scratch). In testing the 7 -> 8 migration, I'm finding it's bringing over a lot of cruft that isn't easy to strip out. All I need from the old site is the book content. Is there any way to bring just that over?

Google Translate changes HTML - Removes link

Hi there,

I have recently developed a website for my local council, and am having some trouble getting Google's online translate feature to work on a specific portion of it.

The website currently uses Bing translate successfully, but the business have asked to move to Google translate as my local area has a large population of people who speak languages not supported by Bing Translate.

Backup and Migrate of files

I'm using Backup and Migrate module Version: 8.x-4.1

I have a private files directory outside web root I backup up private and public files with a view to using the backups as part of the migration from one site host to another

The backups are created as <filename>.mysql.gz

anonymous user session issue with drupal

Drupal 8 doesn't support sessions for anonymous user.

I have two forms, and I am passing one form data to another form using session (i know about multi-step form, but I don't use it here because i need to keep both form code in separate module so could upgrade them later differently as required in different applications).

For logged in user it work perfectly fine, however for anonymous user data gets mixed when two anonymous user submit the form simultaneously. I think session data is either getting cached or being wrongly referenced in class.

Please suggest.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x