How to fire a formidable hook dependent on the execution of a specific form action

By: Jens Würfel | Asked: 03/01/2025
ForumsCategory: Code SnippetsHow to fire a formidable hook dependent on the execution of a specific form action
Jens Würfel asked 2 days ago

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?

1 Answers
Victor Font Staff answered 2 days ago

It depends on the hook you want to use. Some pass the form id, some don't. Please explain what you want to do.

Jens Würfel replied 1 day ago

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.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right