- Issue created by @SirClickALot
- 🇻🇳Vietnam zipme_hkt
This module will use form element when define form with the Drupal Form API, it don't working with the rendered html id.
With your case with the group module you can check on the file GroupRelationshipForm.php you can find the form element
Here is the config
- 🇬🇧United Kingdom SirClickALot Somerset
Brilliant, thank you @zipme_hkt,
I thought as much as I was easily able to target it with a simple
form_alter()
hook but was keen to do it using ECA for site-builder maintenance.Might be worth giving out some simple, easy guidance for site-builders as how they could most easily identify and target form elements. Indeed, even better than guidance, might be to somehow add something to the ECA UI for this action to help them - maybe the 'current form'
- 🇻🇳Vietnam zipme_hkt
@sirclickalot
You are right, with site builder they may got trouble when find the correct element of the form, special is that form is alter by other module.
I think I will add other Form action allow list and debug all the element of form then user can easy find and input correct element id.
-
zipme_hkt →
committed 94925c9e on 2.0.x
#3522889 Add Form Dumper Action to debug form data
-
zipme_hkt →
committed 94925c9e on 2.0.x
- 🇻🇳Vietnam zipme_hkt
@sirclickalot
I added new Action "ECA Helper: Form dumper" on dev release.
Please try it.
-
zipme_hkt →
committed b73e5334 on 2.0.x
#3522889 Add Form Dumper Action, update phpcs
-
zipme_hkt →
committed b73e5334 on 2.0.x
- 🇬🇧United Kingdom SirClickALot Somerset
I have installed the DEV version and set up a Form Dumper using
!!form
...But I do not 'see' any form dump anywhere - nothing in the Watchdog log?
Plus, my ECA never gets to show the DEBUG message but I cannot see any other notices or errors in the Watchdog either.
Where should I expect to see it?
Thanks
- 🇬🇧United Kingdom SirClickALot Somerset
Nope, definitely no sign of any dump anywhere at all?
Like I said, I am not even seeing my DEBUG message suggesting that the whole ECA is not kicking in for some reason.
What else should I try?
- 🇻🇳Vietnam zipme_hkt
Look like your env doesn't has symfony/var-dumper
Please try install with `composer require symfony/var-dumper`
-
zipme_hkt →
committed 9f1fddc8 on 2.0.x
#3522889 Add Form Dumper Action, add warning missing symfony/var-dumper
-
zipme_hkt →
committed 9f1fddc8 on 2.0.x