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

Drupal 11 form infinity scroll / form state problem

I have my own form that shows a list of products. It can be scrolled, but I would like a "Load More" button. My problem is that I can't store the current position, because in the ajax callback I can't use the $form_state->set, get functions. How can I increase the position in the ajax callback function called when the "load more" button is pressed?

Content Security Policy

Hi,

I have developed a Drupal 10 website & it is hosted on xampp & it is not connected with any network. And it is scanned with ZAP Scan application, the result shows content Security Policy, for that i have installed CSP Module and set the CSP Header as Content-Security-Policy "default-src 'self'; script-src 'self' ; style-src 'self'; img-src 'self'; frame-ancestors 'self'; form-action 'self'" in .htaccess file. still the vulnerability is persisting while scanning in ZAP. please help me to resolve this vulnerability.

Twig beginner but Drupal 7 expert

Hello,

[resolved] Drupal 11 - programatically create vocabulary with custom field

I have a custom content type. Upon creating a new node for that content type, I'd like to create a new vocabulary with a custom taxonomy reference field. I have created the code below which does it all, except the field is never shown in the UI form when adding new terms into the newly-created taxonomy. Otherwise, everything seems to be in order - the field is created, it has the correct type, name and everything else.

Webform. Complex field

Hello.

First, I need to say that I'm a complete newbie on Drupal so, sorry if my question is stupide. 

I have a question (need help) regarding element in webform (and how to create a more complex one if it's possible)

First, I was positively surprised to see, on the text field element, that it's possible to have prefix and suffix. In English, the $ goes before an amount but after if the form is in French. (it would be useful to have a separate space for currency that would switch side automatically, depends on the language used

Webform Complex field

Hello.

First, I need to say that I'm a complete newbie on Drupal so, sorry if my question is stupide. 

Ps. I need to figure out how to ass image and not being tagged as "Spam"

I have a question (need help) regarding element in webform (and how to create a more complex one if it's possible)

Pages

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