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

Caching of form entries.

If an anonymous user partly fills in a form, then leaves the page for whatever reason, it would be good if the work he/ she already did was preserved, at least for the duration of his current session. Any solutions for this?

ERROR Call to undefined method Drupal\playlist\Form\PlayListForm::getEntity() in Drupal\playlist\Form\PlayListForm->submitForm

Good day. I'm trying to get the id of a node chosen by the user in a field form of type select...at the bottom, I attach my code for review.

My class extends FormBase and use the following namespaces:

Error InvalidArgumentException</em>: Placeholders must have a trailing [] if they are to be expanded with an array of values

I have been submitting an error when sending my Drupal form, the code is designed to insert the values of a select type field in my database. I do not know what I'm failing but I've been trying to find an answer for over a week and I could not.

/*METODO CONSTRUCTOR DEL FORMULARIO -  buildForm*/

Public function buildForm(array $form, FormStateInterface $form_state) {

  $form['WishForm'] = [
    '#type' => 'fieldset',
    '#title' => $this->t('Favorites'),
  ];

Displaying and Hiding modules at runtime

Hello,

I am totally new to Drupal 8 module development and after searching in different forum I have still not found an answer to something I consider really basic.

Apologies if my question kind of newbie.

I would like to build some custom modules and make their visibility change at runtime for the currently logged on user.

So let say that user X logs on the Drupal site and clicks a check box on custom module A

Creating a Custom Rule for Webform

I am looking to create a custom rule where a webform will only be displayed every 3 or 6 months if a user accessed the page using the same IP Address.

They would have to accept the T&Cs if the IP Address has not been used before but if it has been logged then the page should not reappear for the user.

Is this possible?

Module Bootstrap Paragraph doesn't work..

Hello !

I have a problem :

I have downloaded the module Bootstrap Paragraph in my source files (see image)

https://i.goopics.net/3Ao3q.png

The problem is when I go in the WYSIWYG (see image)

https://i.goopics.net/G5GJn.png

I can change colors of the background, width etc.. but when I save/publish the background and the width settings it doesn’t work.. (see image)

Pages

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