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

Populate webform with previous submission data

Any webform experts in here? I'm using Drupal webform module and trying to populate a webform with previous submission data and while there is an option "Autofill with previous submission data" this only works if you are logged into the site with an active session, not for anonymous users.  I looked at using webform secure token but that merely opens a webform submissions page to view or update submission.

Add a new link in commerce order

Hi, i think that this is simple but is the fist time tha i do it and i dont find the way to do it.
I try to make a new tab. I have this route:

entity.commerce_order.generate_label_form:
  path: /admin/commerce/orders/{commerce_order}/generate_label
  defaults:
    _form: \Drupal\commerce_envialia\Form\generatelabel
    _title: 'Generate label'
  options:
    parameters:
      commerce_order:
        type: 'entity:commerce_order'
  requirements:

How to include taxonomy entity reference in product twig?

Hi

I have a product type called phyical product

I have created a taxonomy called product brand

in product--physical.html.twig I have {{ product.body }} {{ product.variations }}, etc. which render.

I try to load the taxonomy

{% for item in product.product_brand %}

{% set title = item.entity.label %}
  <div class="title-wrap">{{ title }}</div>

{% endfor %}

It doesnt work.

Have tried other variations.

[SOLVED]Translatable configuration

Hi everyone, i have a question, lets suppose that i have a module with a config form that writes a message on my settings, this message is customizable by the user, but i need to make this customized text to be translatable, what is the right way to do it? i did it by placing a t() during save:

Form State save in DB to load later

Hello Everyone,

In D7, I was able to save a form's state as a blob, and then load it again when needed.

Has anyone done something similar in D9?

Thanks,

Nick

Build a mini calendar in sidebar

Hey guys, 

I'm a newbie to drupal 7.

How do you build a mini-calendar in the sidebar? I have installed the calendar module. 

I appreciate a tutorial process, Thanks!

Pages

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