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

Drupal Log Messages Being Truncated

Hello,

Run AJAX cascaded

I am new here, just started to write a module. I am facing a issue to calculate a field and then calculate another field. Here in example, calculate amount in a line item, and on the field amount changed, calculate the total value.

Here is the total value field.

 
    $form['total']['#prefix'] = '<div id="total_value">';
    $form['total']['#suffix'] = '</div>';
    $form['total']['#attributes']['readonly'] = TRUE;

This is the field definition

How to load entities with Null value in Drupal 8

The following fails with an invalidqueryexception

\Drupal::entityTypeManager()->getStorage('foo_module_division')->loadByProperties(['enabled'=>TRUE, 'parent_code'=> NULL]).

How else do I specify that I want to load entities whose parent_code field is NULL

[SOLVED] How to hide a datetime field using form states api

I'm creating some additional functionality for a module and as a part of that I'd like to use the form state API to conditionally show and hide some elements. I've been able to toggle the visibility of a textfield using a select field but when i attempt to do the same for a datetime or table select field, it doesn't work and I'm sure why. Here's my code:

Position of custom fieldset in form

Hello,

I have form created within modules search_api_solr and search_api_views. I used hoot_form_alter to change the form and add custom fieldset. At the hooks end form look similiar to this:

payment_reference is not rendered after ajax call

hi,

I have a form with a  textfield for quantity and payment_reference field. I want to refresh the payment_reference field when the quantity is changed with ajax. After ajax call, the payment_reference field is not refreshed with the new quantity number. the form build code is like this:

Pages

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