Skip Navigation

[Resuelto] Form that creates new post and connects it with other posts in M2M relationship

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem: I would like to create one Form that allows Users to create a new post and connect that post to other posts in a M2M relationship at the same time.

Solution: A Form can create a new post, or link existing posts in an M2M relationship, but it cannot do both at the same time. Two Forms are required.

Relevant Documentation:
https://toolset.com/documentation/post-relationships/how-to-build-front-end-forms-for-connecting-posts/

This support ticket is created hace 6 años, 6 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Christian Cox hace 6 años, 6 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#902537

Tell us what you are trying to do?

- I am trying to create a form to place an order to the warehouse, on the one hand I have a post type called "orders" and on the other hand a post type called "articles" what I need to do is that on the form, when you create a new order, You can choose between the different items that already exist.

I have created a relationship between them from many to many and even reading the documentation I do not understand why I can not do what I need. It's similar to what you do in the backend

Is there any documentation that you are following?

yes the new documentatios for the beta.

Is there a similar example that we can see?

i don´t find it

What is the link to your site?

bar,geonegocios.es

#902613

Hi, it sounds like you are using the Release Candidate plugins, you have a post type "Orders" and you have a post type "Articles". You have created a Many-to-Many (M2M) relationship between Orders and Articles. You would like to use Toolset Forms to create new Orders, and you would like to be able to connect existing Articles with an Order. Is that correct?

If so, then you must create at least two forms - one to create new Orders, and another to set the relationship between Order(s) and existing Article(s). It is not currently possible to create new Orders and select Articles in the same form. Please see the documentation here for more information about Relationship forms:
https://toolset.com/documentation/post-relationships/how-to-build-front-end-forms-for-connecting-posts/

Let me know if you have questions about this process.