Add html to frontend confirmation message

Support MB Frontend Submission Add html to frontend confirmation messageResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32964
    shmaltzshmaltz
    Participant

    Hi, I would like to add a html link to the confirmation message, after a user submits a frontend form.

    I tried adding the html to the confirmation parameter in the form shortcode, and it didn't work.

    I also tried urlencoding the html but it didn't render.

    Is this possible?

    #32970
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You can use the action hook rwmb_frontend_after_display_confirmation to show something after the confirmation message. For example:

    add_action( 'rwmb_frontend_after_display_confirmation', function() {
        echo '<a href="http://yoursite.com">http://yoursite.com</a>';
    } );

    Read more on the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#form-actions

    #32975
    shmaltzshmaltz
    Participant

    This worked perfectly.

    Thanks!

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