ACFE Button non-ajax hook/usage?
-
I’ve added Buttons with the Ajax-enabled hooks, like ‘acfe/fields/button/name=action_1’, but how do I actually run my custom functions without making an Ajax call?
The documentation says “the button will natively submit the current form”, which doesn’t really tell me anything, like:
– How are these values sent/accessed? (I just need the post_id and button name)
– Can I still hook specific actions to different Buttons in a non-Ajax submissions?
– Does the Button type (button|submit) matter? etc.My main issue is that I’m modifying the Post Status of the post the Buttons are attached to, so I need the post to be refreshed/redirected after a Button is clicked.
- The topic ‘ACFE Button non-ajax hook/usage?’ is closed to new replies.