- Issue created by @coaston
- π©πͺGermany jurgenhaas Gottmadingen
Don't think there's a bug, we're using submit buttons ourselves as well and they work as expected. You may want to create a simple example to show what's going wrong, i.e. an ECA model without any dependencies other than ECA or Drupal core. Then we can have a look why it behaves unexpectedly.
- πΈπ°Slovakia coaston
Thank you, just a little hint is needed - should I start with "Build Form" or "After build form" when I need to achieve "cancel" button ?
- π©πͺGermany jurgenhaas Gottmadingen
I usually go with the "Build form" event.
- πΈπ°Slovakia coaston
I am lost :(...
1. Build Form (article)
2. Action FORM:ADD Submit button ie. Trigger name "abc" , label "ABC", type "Secondary"When I navigate to article node I can see button there, if I click on it it will redirect me to "/admin/content"
How can I change that behavior so for example it will clone the current node, or display some message when I hit that button ? ...When I try to use additional action like "display message" or "Entity: Clone existing" it will clone the entity during the refresh the page no matter if I click on that submit button or not.
so what should be step 3 actually ? I believe I need to use that trigger name anywhere, but not sure where..
- πΈπ°Slovakia coaston
It works finally.
It seems i need to use additional event "form submit" and now "FORM:Compare Triggered Submission" works.