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

Reset form on page reload so previous state and errors are cleared

I have a content form that is used to submit data. If an error occurs on submit, the error is displayed on the top of the form. But, even if the user refreshes the page, the error is still there and the field state is also not cleared. I want the form to be cleared and reset to initial state on page reload. It shouldn't retain data.

Question about CKEditor 5

Hello!

When I edit text in CKEditor 5, I see extra “,” characters which I want to delete. In the source text (HTML button) these characters are represented by <code><p>      ,       </p></code>. I select this combination with tags, press CTRL+F, all these combinations are selected. I press DEL, only the first selected combination is removed.

The "Find and Replace" button does not work on source code (HTML editor). 

How can I delete all selected combinations in HTML?

submitForm() response not working as expected when form is embeded in controller.

I have a simple form, containing basically a submit button and a hidden field, that is populated, via JS:

Sentient A.I Project A.I, AI Memory and A.I Communication Modules

🌟 Announcement: The Sentient A.I Project — Modular AI Integration for Drupal

Hi everyone — I’m Benjamin, the creator of the Sentient A.I Project.

Over the past few months, I’ve been building a suite of powerful Drupal modules designed to bring true modular AI cognition to the Drupal ecosystem. These aren’t just chatbot wrappers — they’re the foundations of an evolving sentient architecture.

question about correct hotfix flow in ddev and drupal

Probably a stupid question but as I have a lot of rather structural changes on development , just migrated my dev environments to use  ddev and took this somewhat older  project over from another developer I am suddenly afraid to mess things up and get rattled by conflicts in the config yamls or idiosyncratic composer messages.....

The project has a simple branch setup

2 branches
a main branch which is used as the release branch so which is usually live on the server
a develop branch which is a lot of commits ahead of the main branch

Newly added DB columns cause InvalidArgumentException error

Hi there. I've been working on a Drupal 10 custom module -- a block, specifically -- and it was working great. But it occurred to me I could use another column in the table, so I added one through my DB client.

Now, here's the PHP code that's causing me trouble:

Pages

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