This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Timer on a form

Hi, I need to make a timer in a webform form, to know the total time it takes to fill it out. I thought that the best way to implement it could be by javascript. I have not seen any contrib module.

thanks!

How to use GET request in twig file?

Hi,

I want to retrieve a parameter using GET request in a twig file. My url looks like the following:

text/10405/page?source=field_gita_10589_text&audio=1,

If audio parameter is set, I want to add a button named "Play Audio" next to the content displayed, how can I do this in my twig file?

Currently my twig file looks like this, it displays some content:

Errors & Warnings still displaying even after "Error messages to display" is set to "None"

Hello friends,

I am trying to hide all Warnings and Errors on my Drupal 8 production site.

It looks like the process should be pretty straight forward using the UI:

Administration->Configuration->Development->Logging and errors

Error messages to display:

  • None

However, this does not seem to change anything as all the warnings and errors are still displayed.

Am I missing anything? Is there a way I could turn of errors and warnings programatically?

drag and drop question in h5p - variebles

Hi Everyone

I am  trying to find in a .php file (or somewhere in drupals folder structure) if there is any varieble to save all movements in a drag and drop question from an h5p content that i have created.

More detailed i wonder if drupal saves the moves in drag and drop question (for example,how many times an answer has been moved or if user changes his answer before press the check button.

Thanks

How to add previous and next buttons in Drupal forms

Hi,

I have added previous and next buttons in drupal 8 form. Here is a screenshot of my form

https://imgur.com/a/3FoWxi7

After clicking the 'Next Level' button, I want to select the next chapter from the Select Chapters fields.

How can that be done in forms? 

This is part of my code for chapters field:

Restful put update error 506

Hello, 
I have a problem with the restws, I manage to recover data, but when I want to do an update I get an error: 406Not Acceptable : UuidEntityException: Trying to save a Content entity with empty or invalid UUID.
Please, could you tell me what the problem is?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions