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

Attendance system

Hi,

Trying to create an attendance system using webform for a school. Users are registered through a webform entity with student details- firstname, surname, dob, etc.

To create an attendance logging system - Likert scale columns with Present, Late, Absent seems sensible - but I have not been able to use any entity reference list (views of webform submissions - firstname surname) to populate the likert options values.

Different ways to save data from a form

Hello everybody.

I will start to develop a new module. This module will works saving values ​​of a form. I know that you can save values in module.settings or make a table in the database and save there the values.

I would like to know if there is another ways to save values.

This module will generate form field with a button add more. I try to make it before but i could not save the datas.

I Find some tutorials that show you how to make the form but dont show you how to save the data and the form is deleting when you reload the page.

The specified #ajax callback is empty or not callable

I am using Drupal 9.4.5 and having the custom module code

class="placeholder">Symfony\Component\HttpKernel\Exception\HttpException</em>: The specified #ajax callback is empty or not callable. in <em class="placeholder">Drupal\Core\Form\FormAjaxResponseBuilder-&gt;buildResponse()</em> (line <em class="placeholder">67</em> of <em class="placeholder">core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php</em>).

Add condition to validate existing Form

Hi everyone,

I'm trying to perform some checks on an image before deleting it from "Medias".

I would like to verify that the image (media) is not in use before deleting it from the media.
For example, I have seen that if an image media is used in a custom field of a taxonomy, the row in the database table continues to exist after the corresponding media has been deleted, even after the Cron has been executed.

So I looked for the media delete form (media_delete_form) and tried a simple hook to add my own validation.

Entity reference in callBack

Hi, in form alter I programmatically assign the value to the entity in this way

$nodo->field_comune->entity ;

and It works, I return the title with the ID inside the brackets.
Now I am having difficulty in attributing the value within a callBack.
Using the same mechanism I tried this

Migrate Stock D7 to D9 Commerce Stock

I have this problem, I need migrate field stock from mi D7 website to D9, but in D7 use a Numeric field instead of 'Stock Level' field used for Commerce Stock. In the custom plugin i don,t have the correct parameters to modify, any help??

Pages

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