{"id":36851,"date":"2013-01-31T05:58:30","date_gmt":"2013-01-31T05:58:30","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=36851"},"modified":"2020-11-16T10:15:27","modified_gmt":"2020-11-16T10:15:27","slug":"letting-toolset-edit-custom-fields-created-by-other-plugins","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/es\/course-lesson\/letting-toolset-edit-custom-fields-created-by-other-plugins\/","title":{"rendered":"Letting Forms Edit Post and User Fields Created by Other Plugins"},"content":{"rendered":"\n<p>Toolset forms can include Post and User fields that are defined by other plugins and the theme.<\/p>\n\n\n\n<p>To control <a href=\"https:\/\/toolset.com\/es\/glossary\/custom-fields\/\">Custom Fields<\/a>, go to\u00a0<strong>Toolset\u00a0<\/strong>\u2192\u00a0<strong>Post Forms<\/strong>\u00a0and click on\u00a0<strong>Manage non-Toolset Post Fields<\/strong>, in the section just below the list of your forms. <\/p>\n\n\n\n<p class=\"alert alert-info\">In the following example, we will describe the procedure for\u00a0<strong>Post Fields<\/strong>. In case you want to control\u00a0<strong>User Fields<\/strong>, you can navigate to\u00a0<strong>Toolset\u00a0<\/strong>\u2192\u00a0<strong>User Forms<\/strong>, click on\u00a0<strong>Manage non-Toolset User Fields<\/strong>\u00a0and follow the same process.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"b7a8c25d99a87a3d9f1707bda23f8934\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2018\/09\/toolset-forms-manage-custom-fields-by-other-plugins.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2018\/09\/toolset-forms-manage-custom-fields-by-other-plugins-500x182.png\" alt=\"Managing non-Toolset Post Fields with Toolset Forms\" class=\"wp-image-1100557\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Managing non-Toolset Post Fields with Toolset Forms<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Select the <a href=\"https:\/\/toolset.com\/es\/glossary\/custom-post-type\/\">post type<\/a> for which you want to display custom fields.<\/p>\n\n\n\n<p class=\"alert alert-info\">For a post type to be selectable here, it needs to be configured as public,\u00a0publicly queryable\u00a0and visible in the GUI.<\/p>\n\n\n\n<p>You can choose to display hidden custom fields (which are normally not showing in the WordPress admin). Then, click\u00a0<strong>Apply<\/strong>. Forms will display all custom fields that are being used by the post type. Click\u00a0<strong>Add<\/strong>\u00a0to include them in\u00a0<strong>Forms<\/strong>\u00a0forms.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"567d874cff73103e38f40936b49682da\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2018\/09\/cred-custom-fields-control-dialog.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2018\/09\/cred-custom-fields-control-dialog-500x218.png\" alt=\"Dialog for controlling a non-Toolset custom field\" class=\"wp-image-1100562\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Dialog for controlling a non-Toolset custom field<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>You will select the kind of input to use for each of the fields and enter the appropriate arguments.&nbsp;Fields may have some of the following options, depending on the field type:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Required<\/strong>&nbsp;\u2013 if not entered, the form cannot be submitted<\/li><li><strong>Validate format<\/strong>&nbsp;\u2013 Forms will ensure that field input is compatible with the field type (only applicable to some field types)<\/li><li><strong>Include this field in Scaffold<\/strong>&nbsp;\u2013 the field will automatically appear when you use the&nbsp;<strong>Auto-Generate Form<\/strong>&nbsp;feature.<\/li><\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Once you\u2019ve added custom fields to Forms, you will be able to insert them into forms. Forms will save the field values to the database when submitting the forms and load them from the database when editing content. You can remove the fields from Forms management by using the&nbsp;<strong>Remove<\/strong>&nbsp;button.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Limitations on controlling third-party custom fields<\/h2>\n\n\n\n<p>You cannot use Toolset Types, Forms, or Views to control complex third-party fields like serialized arrays, for example. Doing so will result in an unexpected and broken output. If you need to use such complex fields and control them with Toolset, create them using Toolset Types plugin instead.<\/p>\n","protected":false},"author":4341,"featured_media":1664507,"template":"","related-lesson":[8429],"class_list":["post-36851","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-post-forms"],"_links":{"self":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson\/36851","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":8,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson\/36851\/revisions"}],"predecessor-version":[{"id":1685329,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson\/36851\/revisions\/1685329"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/media\/1664507"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/media?parent=36851"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/related-lesson?post=36851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}