frontend form for relationships acting differently on different pages

Support MB Frontend Submission frontend form for relationships acting differently on different pages

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43544
    jimimacjimimac
    Participant

    I have a relationship between two CPTs - "bookings" & "enquiries".

    I have a frontend submission form on my bookings page to create a relationship to an enquiry - the field is searchable and lists all the enquiries.

    relationship field that is searchable

    On my enquiries page I also have a frontend submission form creating a relationship to a booking - this field isn't searchable and only shows the last 10 bookings rather than all of them.

    relationship field thats not searchable

    Ive followed the same procedure for both so is there a reason why this could be?

    heres the code i used on the bookings page - the one that worked well...
    do_shortcode( '[mb_frontend_form post_id="current" id="enquiry-booking_relationships_from" ajax="true" submit_button="Save Links" confirmation="Done!" redirect="'.$urlRed.'"]' );

    and here's the code i used on the enquiries page that only shows 10 entries and isnt searchable...

    do_shortcode( '[mb_frontend_form post_id="current" id="enquiry-booking_relationships_to" ajax="true" submit_button="Save Links" confirmation="Done!" redirect="'.$urlRed.'"]' );

    #43548
    PeterPeter
    Moderator

    Hello,

    Do you use the field type select when registering the relationship between "bookings" & "enquiries"? Please share the code that you use to register the relationship, I will help you to check the issue.

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