{"id":1620257,"date":"2020-05-13T14:23:39","date_gmt":"2020-05-13T14:23:39","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1620257"},"modified":"2020-11-16T10:06:06","modified_gmt":"2020-11-16T10:06:06","slug":"adding-generic-fields-to-forms","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/de\/course-lesson\/adding-generic-fields-to-forms\/","title":{"rendered":"Adding Generic Fields to Forms"},"content":{"rendered":"\n<p>In the form editor, click&nbsp;<strong>Generic Fields<\/strong>&nbsp;to expand the list of available&nbsp;fields.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"b7d72d7694c3220e327112eb006bf29d\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2019\/02\/forms-generic-fields.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2019\/02\/forms-generic-fields-500x479.png\" alt=\"Inserting generic fields to forms\" class=\"wp-image-1196651\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Inserting generic fields to forms<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<p>You can add different types of generic fields. To insert them, simply drag-and-drop them into the main editing area.<\/p>\n\n\n\n<p>After placing a generic field into the&nbsp;<strong>From&nbsp;<\/strong>click on it to set&nbsp;its options.<\/p>\n\n\n\n<p>You should never use special characters in field slugs. This is especially for apostrophes like&nbsp;<code>'<\/code>&nbsp;and&nbsp;<code>\"<\/code>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"02e2dd6e4d7b3fbc4793e4c8b2b760cc\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2019\/02\/forms-generic-field-options.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2019\/02\/forms-generic-field-options-500x316.png\" alt=\"Field options\" class=\"wp-image-1196657\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Clicking the generic field to see its options<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"processing-generic-fields\">Processing Generic Fields<\/h2>\n\n\n\n<p>The generic fields that you add to the form are not part of the post, so Forms will not process them automatically. <\/p>\n\n\n\n<p>You are free to use generic fields for whatever purpose your application requires. Your processing should go into PHP code and run on&nbsp;<a href=\"https:\/\/toolset.com\/documentation\/programmer-reference\/cred-api\/\">Forms hooks<\/a>.<\/p>\n","protected":false},"author":4341,"featured_media":1630571,"template":"","related-lesson":[8429],"class_list":["post-1620257","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-post-forms"],"_links":{"self":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1620257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":3,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1620257\/revisions"}],"predecessor-version":[{"id":1691449,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1620257\/revisions\/1691449"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media\/1630571"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media?parent=1620257"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/related-lesson?post=1620257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}