Hook rwmb_frontend_before_display_confirmation

Support MB Frontend Submission Hook rwmb_frontend_before_display_confirmation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #47803
    luigi gaudinoluigi gaudino
    Participant

    Hi! Can i have a example of hook rwmb_frontend_before_display_confirmation? I can't get it to work to show a custom message after form submission

    #47806
    PeterPeter
    Moderator

    Hello,

    Here is an example of how to use the hook rwmb_frontend_before_display_confirmation

    add_action( 'rwmb_frontend_before_display_confirmation', function() {
        echo '<p>Custom text before confirmation</p>';
    } );

    you can use the hook to show something before the confirmation message after submitting the form, screenshot https://imgur.com/LaWE3q8

    #47810
    luigi gaudinoluigi gaudino
    Participant

    Thanks, it works. Do you have one also for ajax submission?

    #47813
    PeterPeter
    Moderator

    Hello,

    There is no action hook for Ajax submission. In the background, it processes the same functions with/without Ajax. Please check all the Frontend form hooks in the documentation
    http://docs.metabox.io/extensions/mb-frontend-submission/#hooks-1

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.