Form actions provide a very detailed level of conditional logic, as we all know. I am trying to make use of that by creating a formidable hook that only fires when a specific form is submitted and a specific form action gets executed, too.
What I am specifically trying to achieve is create an entry in form B, only if form A gets submitted and form action ID 1234 is executed (because it’s underlying conditions are matched). Something like …
frm-after-create-entry if form_id=16 && form_action_id=1234
But so far I had no luck tapping into the form action ID by code. Has anybody an idea how to do that?
It depends on the hook you want to use. Some pass the form id, some don't. Please explain what you want to do.
Thanks for replying so quickly, Victor — I swear, I wrote a detailed explanation of what I am trying to achieve, but for some reason all of that never made it into my forum post. I don’t know why.
I have edited my original post and added the question details.
Please login or Register to submit your answer