Build Frontend form with php

Support MB Frontend Submission Build Frontend form with phpResolved

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

    Hello i'm using shortcode to display a frontend form like: [mb_frontend_form id='contatti' post_fields='nome,emailcontatto,messaggio' submit_button='Invia' confirmation="Messaggio inviato!"]

    All is working good.

    Can i build a frontend form using php? (i would like to write my custom html to display form).

    Thanks

    #29627
    Long NguyenLong Nguyen
    Moderator

    Hi Luigi,

    Can you please clarify the question?

    Do you want to build a form from scratch or insert the frontend submit form into your PHP code?

    #29642
    luigi gaudinoluigi gaudino
    Participant

    Hi Long,
    I would like to insert custom html between metabox custom fields on frontend submission, i guessed i have to use php, but if it's possible in another way it's ok for me.

    #29648
    Long NguyenLong Nguyen
    Moderator

    Hi,

    If you want to add some HTML code between fields, you can follow the field appearance filters documentation https://docs.metabox.io/filters/#field-appearance-filters

    #29651
    luigi gaudinoluigi gaudino
    Participant

    Fantastic, what i was looking for.

    Thanks!

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