ContactForm with presets via button

Support MB Frontend Submission ContactForm with presets via buttonResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46673
    DufflDuffl
    Participant

    Hello there,

    I am trying to create a contact form popup, which is triggered via a button.
    I would like to use MB Frontend Submission.

    My issue is: I do not know how to pre-populate some values that should be dependent on the individual button.

    As an example: I have several board members on that page. CEO, CTO, CFO. Those are displayed as "cards": A portrait photo, name, title - and a "Contact me" button.

    Now I need that button to open a popup (Elementor) where a MB Frontend Submission form is displayed - and that form is meant to send the contents via mail to the address of the person whose button had been clicked.
    If you can give me any hint as to how to achieve that, it would help me a lot 🙂

    I have already read this post, which I do fully understand and can go on from that knowledge: https://metabox.io/how-to-create-a-contact-form-with-mb-frontend-submission/

    Thank you!

    #46687
    PeterPeter
    Moderator

    Hello Duffl,

    If you add the frontend submission form to a popup/modal, there are some JS errors which are script files not loaded correctly and the form doesn't work. You can read more in this ticket https://support.metabox.io/topic/javascript-error-when-inspecting-single-page/

    When clicking on the Contact Me button, you should redirect the user to a page where you add the frontend form instead of opening a popup.

    #46691
    DufflDuffl
    Participant

    Thank you, yes, you are right, I am getting errors with popups even when not using MB Frontend Submission (for testing I used Elementor Forms).

    Using pages works fine.
    Solved for me 🙂

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