Buy Now
Sign in

How to detect wich submit button has fired?

Collie-IT , May 07 2021, 14:57
C
Collie-IT 92
May 07 2021, 14:57 #396386
Dear support,how can I detect wich of 3 "submit" buttons was the event firing one?At the moment I dance arround the issue while using normal buttons and add a state via js in a hidden field. Is there a other way to dect the sender directly?
Best regards
Collie-IT
GreyHead 65
May 08 2021, 09:45 #396395
Hi Collie-IT,
Please see this CFv5 thread. The same approach should work in CFv7.
Bob
If you'd like to buy me a coffee or two, thank you very much
C
Collie-IT 92
May 08 2021, 10:55 #396396
[div wfd-id="208"]Hi Bob,[/div]
the big problem is that in CFv7 the sending button is not included in the $this->data array.
Out of this reason the CFv5 solution don't work any more.
Maybe here is a bug in CFv7.
Best regards
Collie-IT
GreyHead 65
May 09 2021, 09:13 #396397
Hi Collie-IT,
It could be, we need Max to respond to that.
I did try to create a test form and add a Debugger but couldn't find the Debugger action :-(
Bob
If you'd like to buy me a coffee or two, thank you very much