Custom Fields
Re-Envisioned
Support MB Frontend Submission Relationship content submission

  • Creator
    Topic
  • #30733
    Resolved Gavin
    Participant

    I have successfully created a quick mockup of a form that allows a user to submit a review and connect it (set the relationship) with an organisation, , showing a dropdown of organisations to connect to:

    [mb_frontend_form id='review-relationship_relationships_to' post_fields='title' post_type='review']

    However, when I add a custom fields group id into the mix, nothing happens:

    [mb_frontend_form id='review-relationship_relationships_to, review-fields' post_fields='title' post_type='review']

    If I put 'review-fields' before 'review-relationship_relationship_to', only the review fields display, and the review relationship dropdown disappears:

    [mb_frontend_form id='review-fields, review-relationship_relationships_to, review-fields' post_fields='title' post_type='review']

    I thought we could return multiple meta boxes by inserting their IDs separated by a comma?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #30747
    Long Nguyen
    Moderator

    Hi,

    Yes, we can add multiple meta box IDs by using separate commas but without space. Like this

    [mb_frontend_form id='review-fields,review-relationship_relationships_to' post_fields='title' post_type='review']
    
    #30754
    Gavin
    Participant

    Thanks Long, that worked.

    How do I move the relationship dropdown field to 'above' the Title field?

    Thanks.

    #30761
    Long Nguyen
    Moderator

    Hi,

    Please follow this documentation to know how to re-order post fields https://docs.metabox.io/extensions/mb-frontend-submission/#reorder-post-fields

    #30769
    Gavin
    Participant

    Ah, right - I think I've got that now. Thanks for your help 🙂

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