
{"id":2681,"date":"2015-09-14T23:26:12","date_gmt":"2015-09-15T03:26:12","guid":{"rendered":"http:\/\/www.beprosoftware.com\/documentation\/?p=2681"},"modified":"2015-09-16T22:05:42","modified_gmt":"2015-09-17T02:05:42","slug":"conditional-form-fields","status":"publish","type":"post","link":"https:\/\/beprosoftware.com\/documentation\/conditional-form-fields\/","title":{"rendered":"Conditional Form Fields"},"content":{"rendered":"<p>You can setup a scenario where the form changes depending on the Category or the Payment package that&#8217;s selected. This feature was introduced in version 1.0.395 and provides a flexible option for adding conditional logic to your Forms. <\/p>\n<h2>SETUP<\/h2>\n<p>In the BePro Listings->Addons menu, you will see the Form Builder sub tab. There you can select which type of &#8220;Ajax Form&#8221; you would like. You can select between category or package. This is the first step in setting up the conditional logic<\/p>\n<p>If you have selected to use category logic, then you will notice a new Form option while creating or editing BePro Listings categories. Select the form which you believe is best suited for that category.<\/p>\n<p>Payment Packages are controlled via BePro Listings. If you chose to apply conditional logic through packages, then you must activate this feature in BePro Listings, before the ajax forms will work. Follow our <a href=\"http:\/\/www.beprosoftware.com\/documentation\/bepro-listings-payments\/\" target=\"_blank\">BePro Listings payment documentation<\/a> if you have any questions. Once that is activated, you will notice an option to select the related form while editing or creating a payment package.<\/p>\n<p>NOTE: Each form must have a category input box in it, if you expect to use the category ajax forms. The same goes for the packages, you must have the package input box in each form for the feature to work. We recommend putting the input box at the top of the form, so its easier for users to switch between forms.<\/p>\n<p>One of the most important aspects to note, is how you will get the user to interact with these new dynamic frontend forms. If the user tries to manipulate a form from their profile, then the ajax form will be automatically selected. If you are using the BePro Listings shortcode, you can set bl_form_id=&#8221;ajax&#8221; in the create_listing_form shortcode as noted in the following example<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n[create_listing_form bl_form_id=&quot;ajax&quot;]\r\n<\/pre>\n<p>Alternatively, you can create a form with just the category field or just the package field depending on your goals. Show that form to users and the dynamic features will work.<\/p>\n<h2>FRONTEND USER EXPERIENCE<\/h2>\n<p>As the user changes the category or package, the form will change via ajax. This means that they will stay on the same page, but the form will change.<\/p>\n<p>If you have chosen category ajax forms, then you will notice a few changes on the frontend including<\/p>\n<ul>\n<li>Via the profile, the form options will be replaced by a simple Add Listing button<\/li>\n<li>When adding a new listing, the users first sees the category selectbox<\/li>\n<li>You can only select one category in the form<\/li>\n<li>As the user selects different categories, the form changes<\/li>\n<li>Categories that do not have a form linked to them, will not be options in the form<\/li>\n<\/ul>\n<p>For those who chose to go with package ajax forms, you will notice the following changes on the frontend<\/p>\n<ul>\n<li>Via the profile, the form options will be replaced by an &#8220;Add Listing&#8221; button<\/li>\n<li>When adding a new listing, the users first sees the package options<\/li>\n<li>As the user selects different packages, the form changes<\/li>\n<li>Packages without a form attached will result in only the package options being shown<\/li>\n<\/ul>\n<h2>CONCLUSION<\/h2>\n<p>Setting up forms to change depending on category or package, is easy with the BePro Listings Form Builder. This makes the setup versatile, use category logic which is popular with product catalogs, or link forms to packages which is popular with business directories. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can setup a scenario where the form changes depending on the Category or the Payment package that&#8217;s selected. This feature was introduced in version 1.0.395 and provides a flexible option for adding conditional logic to your Forms. SETUP In the BePro Listings->Addons menu, you will see the Form Builder sub tab. There you can&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[322],"tags":[384,382,381,380,383],"class_list":["post-2681","post","type-post","status-publish","format-standard","hentry","category-bepro-listings-form-builder","tag-ajax-forms","tag-category-forms","tag-conditional-logic","tag-directory-form-builder","tag-payment-package","category-322","description-off"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Conditional Form Fields - Documentation<\/title>\n<meta name=\"description\" content=\"You can set the form to change depending on the category or payment package selected. Ultimate form Builder for front end submissions on wordpress\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Conditional Form Fields - Documentation\" \/>\n<meta property=\"og:description\" content=\"You can set the form to change depending on the category or payment package selected. Ultimate form Builder for front end submissions on wordpress\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2015-09-15T03:26:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-09-17T02:05:42+00:00\" \/>\n<meta name=\"author\" content=\"BePro Software Team\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"BePro Software Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/\",\"url\":\"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/\",\"name\":\"Conditional Form Fields - Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#website\"},\"datePublished\":\"2015-09-15T03:26:12+00:00\",\"dateModified\":\"2015-09-17T02:05:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef\"},\"description\":\"You can set the form to change depending on the category or payment package selected. Ultimate form Builder for front end submissions on wordpress\",\"breadcrumb\":{\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.beprosoftware.com\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Conditional Form Fields\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#website\",\"url\":\"https:\/\/www.beprosoftware.com\/documentation\/\",\"name\":\"Documentation\",\"description\":\"BePro Software Product Documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.beprosoftware.com\/documentation\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef\",\"name\":\"BePro Software Team\",\"description\":\"BePro Software is a Canadian company providing managed hosting, operational support, and long-term stewardship for business-critical websites and digital systems. We specialize in maintaining and operating platforms built by others, focusing on stability, security, accessibility, and continuity rather than one-off development. BePro Software is owned and operated by Beyond Programs Ltd and is based in British Columbia, Canada. Contact us on FolioProjects @BeproSoftware\",\"sameAs\":[\"http:\/\/beprosoftware.com\",\"https:\/\/x.com\/beprosoftware\"],\"url\":\"https:\/\/beprosoftware.com\/documentation\/author\/manager\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Conditional Form Fields - Documentation","description":"You can set the form to change depending on the category or payment package selected. Ultimate form Builder for front end submissions on wordpress","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/","og_locale":"en_US","og_type":"article","og_title":"Conditional Form Fields - Documentation","og_description":"You can set the form to change depending on the category or payment package selected. Ultimate form Builder for front end submissions on wordpress","og_url":"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/","og_site_name":"Documentation","article_published_time":"2015-09-15T03:26:12+00:00","article_modified_time":"2015-09-17T02:05:42+00:00","author":"BePro Software Team","twitter_misc":{"Written by":"BePro Software Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/","url":"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/","name":"Conditional Form Fields - Documentation","isPartOf":{"@id":"https:\/\/www.beprosoftware.com\/documentation\/#website"},"datePublished":"2015-09-15T03:26:12+00:00","dateModified":"2015-09-17T02:05:42+00:00","author":{"@id":"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef"},"description":"You can set the form to change depending on the category or payment package selected. Ultimate form Builder for front end submissions on wordpress","breadcrumb":{"@id":"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.beprosoftware.com\/documentation\/conditional-form-fields\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.beprosoftware.com\/documentation\/"},{"@type":"ListItem","position":2,"name":"Conditional Form Fields"}]},{"@type":"WebSite","@id":"https:\/\/www.beprosoftware.com\/documentation\/#website","url":"https:\/\/www.beprosoftware.com\/documentation\/","name":"Documentation","description":"BePro Software Product Documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.beprosoftware.com\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef","name":"BePro Software Team","description":"BePro Software is a Canadian company providing managed hosting, operational support, and long-term stewardship for business-critical websites and digital systems. We specialize in maintaining and operating platforms built by others, focusing on stability, security, accessibility, and continuity rather than one-off development. BePro Software is owned and operated by Beyond Programs Ltd and is based in British Columbia, Canada. Contact us on FolioProjects @BeproSoftware","sameAs":["http:\/\/beprosoftware.com","https:\/\/x.com\/beprosoftware"],"url":"https:\/\/beprosoftware.com\/documentation\/author\/manager\/"}]}},"_links":{"self":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts\/2681"}],"collection":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/comments?post=2681"}],"version-history":[{"count":1,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts\/2681\/revisions"}],"predecessor-version":[{"id":2684,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts\/2681\/revisions\/2684"}],"wp:attachment":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/media?parent=2681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/categories?post=2681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/tags?post=2681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}