Early Bird Registration for DrupalCon Atlanta is now open! By registering during our Early Bird Registration window, you’ll save $100. This window ends on 19 January 2025 and will go by quickly, so don’t wait!
I want to add some meta data to submit button of a web form
What i want is when the form get validated and before submit event of webform the metadata get added to the submit button and when submit event trigger the js onclick event will work directly
Is there any way to achieve it
1. I tried custom validator using form alter and then rebuild the form
2. Tried to use event subscriber but was confused where and how would it implement
3. Was checking for any key on form state where we get to know that the form is validated or not if yes then we add meta data
I have run into an issue with a complex Ajax enabled form in a custom module (Drupal 9.5). In certain error scenarios I get
Symfony\Component\HttpKernel\Exception\HttpException: The specified #ajax callback is empty or not callable
because the triggering_element can't be found in /Drupal/Core/Form/FormAjaxResponseBuilder.php . So I ended up setting the property manually in my validate function like this:
When users create or modify the token and rebuild the cache, then immediately the website and mobile app goes down. when we check the logs there is an error as below
Hi all,
I’m encountering errors related to missing libraries in Drupal: Commerce Price requires the commerceguys/intl library.
Address requires the commerceguys/addressing library.
In composer.json, I have:
"commerceguys/addressing": "dev-master",
"commerceguys/intl": "^dev-master"
I've run composer update and cleared the cache, but the issue persists. Any other steps to fix this?