Account created on 13 January 2009, over 16 years ago
#

Recent comments

🇵🇰Pakistan asghar

Most probably something is missing like class/twig in Belgrade theme to act message time code. Please compare source code then you will be able to identify the issue. Thanks

🇵🇰Pakistan asghar

You need the custom code to achieve this. Maybe Webform otherwise it is doable with hook_form_alter. Thanks

🇵🇰Pakistan asghar

Hi @ben.campbell, 

Check in your code where you using the below interface. Just remove it if is in the custom module & if it is contrib then update that module.

Twig\Extension\LastModifiedExtensionInterface
🇵🇰Pakistan asghar

Hi, 

Hope you updated the core, using composer or manual ?. If you did using composer then make sure twig related packages also updated successfully. If all is good then maybe it cache issue. Thanks

🇵🇰Pakistan asghar

Hi @cyberdrip, 

I think you are looking something -  https://www.drupal.org/project/static_generator . If you plan I can help you implementation. Thanks

🇵🇰Pakistan asghar

Add the marker on selecting the autocomplete results:

🇵🇰Pakistan asghar

Hi,
I am facing the same issue. Here are the details:

  1. I have a select list containing the group types and with the #ajax property, which has a callback to display the roles (checkboxes).
  2. I have checkboxes displaying the roles of the group type.
  3. If I check/tick the roles and save the configuration form,
  4. I can see the checkboxes checked, but when I change the group type to another group type and then select the saved type again, my roles checkboxes are unchecked, even though #default_values are properly set.

Workaround:

Go to your #ajax callback function.
Retrieve the default value and pass the #attributes to check, for example,

  public function ajaxCallback(array &$form, FormStateInterface $form_state) {
    foreach ($form['group_roles']['#default_value'] as $key) {
      $form['group_roles'][$key]['#attributes']['checked'] = 'checked';
    }
    return $form['group_roles'];
  }
Production build 0.71.5 2024