Custom Fields
Re-Envisioned
Support MB Frontend Submission Add html to frontend confirmation message

  • Creator
    Topic
  • #32964
    Resolved shmaltz
    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #32970
    Long 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
    shmaltz
    Participant

    This worked perfectly.

    Thanks!

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