{"id":1727277,"date":"2020-09-15T12:47:44","date_gmt":"2020-09-15T12:47:44","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1727277"},"modified":"2020-11-18T14:39:44","modified_gmt":"2020-11-18T14:39:44","slug":"front-end-relationship-forms-for-connecting-posts","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/es\/course-lesson\/front-end-relationship-forms-for-connecting-posts\/","title":{"rendered":"Front-End Forms for Connecting Related Posts"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">When you need forms from connecting between posts<\/h2>\n\n\n\n<p>When your site uses Toolset&#8217;s Post Relationship, you can connect between posts. For example, an &#8220;events&#8221; site may have posts for &#8220;events&#8221; and &#8220;speakers&#8221;. These two types will be in a many-to-many relationship.<\/p>\n\n\n\n<p><strong>Toolset Forms<\/strong> allows you to create forms for creating and edit content. You can also create forms that will set-up and change post connections. For example, you can create a form that will allow to add speakers to an event.<\/p>\n\n\n\n<p>This way, you can design a complete front-end editing interface, using Toolset Forms. Your interface will include forms for creating &#8220;events&#8221;, &#8220;speakers&#8221; and the connection between them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps for creating a relationship form<\/h2>\n\n\n\n<p>Go to <strong>Toolset&nbsp;<\/strong>\u2192&nbsp;<strong>Relationship Forms&nbsp;<\/strong>and click the&nbsp;<strong>Add New&nbsp;<\/strong>button. A wizard guides you through the form set up.<\/p>\n\n\n\n<p>This includes naming the form, selecting the relationship and what page users go to after submitting the form.<\/p>\n\n\n\n<p>In the final step, you can insert additional form fields or rearrange them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using the post relationship form<\/h2>\n\n\n\n<p>There are two ways to use front-end forms for connecting posts:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Connect any two items in a&nbsp;relationship.<\/li><li>Connect between one specific item and another item that the user must select.<\/li><\/ul>\n\n\n\n<p>Steps to use the post relationship form:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Edit the page, a View, or a template where you want to use the form.<\/li><li>Insert the Toolset <strong>Form <\/strong>block and select the relationship form you just created.<\/li><li>In the right sidebar, select how you would like to use the relationship form.<\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"a251ccc197ce62e12f261ea3c947dda9\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/toolset-post-relationship-form-selecting-an-action.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/toolset-post-relationship-form-selecting-an-action-500x314.png\" alt=\"\" class=\"wp-image-1770703\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Selecting how the relationship form will allow to connect posts<\/figcaption><\/div><\/figure>\n<\/div>","protected":false},"author":4341,"featured_media":1734647,"template":"","related-lesson":[8469],"class_list":["post-1727277","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-post-relationships"],"_links":{"self":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson\/1727277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":7,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson\/1727277\/revisions"}],"predecessor-version":[{"id":1776239,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson\/1727277\/revisions\/1776239"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/media\/1734647"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/media?parent=1727277"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/related-lesson?post=1727277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}