{"id":593,"date":"2020-05-27T16:14:51","date_gmt":"2020-05-27T16:14:51","guid":{"rendered":"https:\/\/directorist.com\/docs\/?post_type=wpwax_dservice&#038;p=593"},"modified":"2020-06-01T07:07:21","modified_gmt":"2020-06-01T07:07:21","slug":"custom-fields-on-add-listing-page","status":"publish","type":"wpwax_dservice","link":"https:\/\/directorist.com\/documentation\/dservice\/customization\/custom-fields-on-add-listing-page\/","title":{"rendered":"Custom Fields On Add Listing Page"},"content":{"rendered":"<div id=\"eckb-article-content-body\">\n<div id=\"kb-article-content\">\n<p>dService gives you the ability to create unlimited custom form fields for free. You can add various types of information to a listing using the custom form fields. You can also add dynamic and conditional custom fields to a form. For example, you can attach a custom field to a specific category then the custom field will appear in the add-listing form only if that category is selected during adding a listing. You can also attach a custom field to the add-listing form then he custom field will appear regardless of the selected category.<\/p>\n<h3>Adding a custom field<\/h3>\n<p>Please visit the <strong>Dashboard \u2192 Directory Listings \u2192 Custom Fields<\/strong>\u00a0page and click the<strong>\u00a0Add New Field<\/strong>\u00a0button. You will see a screen like below. Enter a name field anything you like. For example, Property Type or Gender, etc.<\/p>\n<figure id=\"attachment_2594\" class=\"wp-caption aligncenter\" aria-describedby=\"caption-attachment-2594\"><a href=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Add-new-custom-field-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2594 lazyloaded\" src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Add-new-custom-field-1.png\" alt=\"Add new custom field\" width=\"1265\" height=\"1203\" data-lazy-src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Add-new-custom-field-1.png\" data-was-processed=\"true\" \/><\/a><figcaption id=\"caption-attachment-2594\" class=\"wp-caption-text\">Add new custom field<\/figcaption><\/figure>\n<h2>Description of fields<\/h2>\n<p>Now let\u2019s check out a small description of each field in the add-new-field form.<\/p>\n<ol>\n<li><strong>Field Type:<\/strong>\u00a0You can choose an appropriate field type for your custom field from the dropdown list. There are 9 types of fields are available to choose from at the time of writing this doc. They are\u00a0<strong>Text, Text\u00a0 Area, Select, Checkbox, Radio Button, URL, Date, Color, and Time<\/strong>.<br \/>\n<figure id=\"attachment_2603\" class=\"wp-caption aligncenter\" aria-describedby=\"caption-attachment-2603\"><a href=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Available-field-types.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2603 lazyloaded\" src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Available-field-types.jpg\" alt=\"Available field types\" width=\"1271\" height=\"423\" data-lazy-src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Available-field-types.jpg\" data-was-processed=\"true\" \/><\/a><figcaption id=\"caption-attachment-2603\" class=\"wp-caption-text\">\u00a0Available field types<\/figcaption><\/figure>\n<\/li>\n<li><strong>Field Description<\/strong>: You can describe the field you are adding so that user can easily understand the purpose of the field. If you are accepting listing submission from the public then adding some description for a custom is often a better idea. This description will appear in a nice tooltip beside the field name. So, it will not take space nor will it look ugly.<\/li>\n<li><strong>Required<\/strong>: The title of this field explains everything. You can make any custom field required by setting this option to \u2018Yes\u2019. A user can not submit a listing without fill in the field or choose a value for the field which marked required before submitting a listing. Available Options: Yes | No.<br \/>\n<figure id=\"attachment_2609\" class=\"wp-caption aligncenter\" aria-describedby=\"caption-attachment-2609\"><a href=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/displaying-sample-custom-fields-in-the-form.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2609 lazyloaded\" src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/displaying-sample-custom-fields-in-the-form.jpg\" alt=\"displaying sample custom fields in the form\" width=\"610\" height=\"345\" data-lazy-src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/displaying-sample-custom-fields-in-the-form.jpg\" data-was-processed=\"true\" \/><\/a><figcaption id=\"caption-attachment-2609\" class=\"wp-caption-text\">displaying sample custom fields in the form<\/figcaption><\/figure>\n<\/li>\n<li><strong>Include this field in the search from?<\/strong>: The title of this field explains its purpose clearly. If you want to show the custom field to the search filter area, then set this option to Yes. Otherwise, set this option to No to hide the field from the search filter.<\/li>\n<li><strong>Assign to<\/strong>: As we have discussed in the beginning that you can assign a custom field either to a specific category or the add listing form. If you assign the field to a specific category, then the assigned field will show in the add-listing form only if that category is selected. For example, if you assign a custom field called Event Start to the event category, then the Event Start field will appear in the add-listing form only if the event category is selected in the add-listing form. However, if you assign a custom field to the listing form, then the field will appear in the listing form regardless of the category selected.<br \/>\n<figure id=\"attachment_2613\" class=\"wp-caption aligncenter\" aria-describedby=\"caption-attachment-2613\"><a href=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Display-option-for-a-custom-field.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2613 lazyloaded\" src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Display-option-for-a-custom-field.jpg\" alt=\"Display option for a custom field\" width=\"608\" height=\"392\" data-lazy-src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/02\/Display-option-for-a-custom-field.jpg\" data-was-processed=\"true\" \/><\/a><\/figure>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n","protected":false},"author":2296,"parent":0,"menu_order":0,"template":"","class_list":["post-593","wpwax_dservice","type-wpwax_dservice","status-publish","hentry","wpwax_dservice_category-customization"],"acf":[],"_links":{"self":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_dservice\/593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_dservice"}],"about":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/types\/wpwax_dservice"}],"author":[{"embeddable":true,"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/users\/2296"}],"wp:attachment":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/media?parent=593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}