{"id":97,"date":"2010-01-29T08:46:00","date_gmt":"2010-01-29T14:46:00","guid":{"rendered":"http:\/\/www.teamdesk.net\/blog\/2010\/01\/more-dynamic-in-the-forms\/"},"modified":"2015-10-26T14:28:13","modified_gmt":"2015-10-26T19:28:13","slug":"more-dynamic-in-the-forms","status":"publish","type":"post","link":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/","title":{"rendered":"Dynamic layout in the forms"},"content":{"rendered":"<p>We&#8217;ve just released an facility to control column behavior in the forms.<\/p>\n<p>You can now specify the condition and the set of changes to apply to the form&#8217;s columns when the condition is met.<\/p>\n<p>Consider the following scenario:<\/p>\n<p>We have an Activity table that will store two types of activities: Tasks and Events. The have something is common: the Type, Subject, Assigned To and Description column apply to both types. Due Date, Status and Priority apply to Tasks only while Location, Start Date and Duration apply to Events only. Also, we want to require user input to Assigned To column when the type is Task. Here is the screenshot from column&#8217;s setup:<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/581.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-489\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/581.jpg\" alt=\"58,1\" width=\"330\" height=\"283\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/581.jpg 330w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/581-300x257.jpg 300w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/><\/a><\/p>\n<p>Now we&#8217;ll set up the form&#8217;s behavior.<\/p>\n<p>Visit Forms &gt; Customize form behavior.<\/p>\n<p>By default \u2013 if nothing is specified \u2013 <a href=\"http:\/\/www.teamdesk.net\">TeamDesk<\/a> will maintain its current behavior \u2013 display all columns in view mode and display editable columns only in edit mode. We&#8217;ll need to set it up in a little different way.<\/p>\n<p>First, in Default section we&#8217;ll hide the type specific columns.<\/p>\n<p>Then we&#8217;ll define the condition to check whether the Type is Task \u2013 the interface is identical to the view&#8217;s filters and specify the column settings for Type-specific columns.<\/p>\n<p>Finally we&#8217;ll define another condition to check whether the Type is Event and, again, behavior for event specific columns.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/582.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-490\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/582.jpg\" alt=\"58,2\" width=\"355\" height=\"329\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/582.jpg 355w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/582-300x278.jpg 300w\" sizes=\"auto, (max-width: 355px) 100vw, 355px\" \/><\/a><\/p>\n<p>Let&#8217;s test what we have:<\/p>\n<p><!--more--><\/p>\n<p>When we create new record, and no type is specified, neither condition is met and the rules from Default sections are used \u2013 hiding all type specific columns.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/583.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-491\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/583.jpg\" alt=\"58,3\" width=\"424\" height=\"148\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/583.jpg 424w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/583-300x105.jpg 300w\" sizes=\"auto, (max-width: 424px) 100vw, 424px\" \/><\/a><\/p>\n<p>Now, let&#8217;s change the type to Task \u2013 Task specific columns will appear, please note that Assigned To also receives Required mark:<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/584.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-492\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/584.jpg\" alt=\"58,4\" width=\"424\" height=\"220\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/584.jpg 424w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/584-300x156.jpg 300w\" sizes=\"auto, (max-width: 424px) 100vw, 424px\" \/><\/a><\/p>\n<p>And when Event is selected, task specific columns are replaced with event specific columns:<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/585.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-494\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/585.jpg\" alt=\"58,5\" width=\"424\" height=\"220\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/585.jpg 424w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/585-300x156.jpg 300w\" sizes=\"auto, (max-width: 424px) 100vw, 424px\" \/><\/a><\/p>\n<p>The logic you defined is not form specific \u2013 it is applied to all table forms.<\/p>\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve just released an facility to control column behavior in the forms. You can now specify the condition and the set of changes to apply to the form&#8217;s columns when the condition is met. Consider the following scenario: We have an Activity table that will store two types of activities: Tasks and Events. The have [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-97","post","type-post","status-publish","format-standard","hentry","category-whats-new"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Dynamic layout in the forms - TeamDesk Blog<\/title>\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.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dynamic layout in the forms - TeamDesk Blog\" \/>\n<meta property=\"og:description\" content=\"We&#8217;ve just released an facility to control column behavior in the forms. You can now specify the condition and the set of changes to apply to the form&#8217;s columns when the condition is met. Consider the following scenario: We have an Activity table that will store two types of activities: Tasks and Events. The have [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/\" \/>\n<meta property=\"og:site_name\" content=\"TeamDesk Blog\" \/>\n<meta property=\"article:published_time\" content=\"2010-01-29T14:46:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-10-26T19:28:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/581.jpg\" \/>\n<meta name=\"author\" content=\"Kirill Bondar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirill Bondar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/\"},\"author\":{\"name\":\"Kirill Bondar\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#\\\/schema\\\/person\\\/22c4c05bd657513c8b00122fa364c8d2\"},\"headline\":\"Dynamic layout in the forms\",\"datePublished\":\"2010-01-29T14:46:00+00:00\",\"dateModified\":\"2015-10-26T19:28:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/\"},\"wordCount\":307,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2010\\\/01\\\/581.jpg\",\"articleSection\":[\"What's New\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/\",\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/\",\"name\":\"Dynamic layout in the forms - TeamDesk Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2010\\\/01\\\/581.jpg\",\"datePublished\":\"2010-01-29T14:46:00+00:00\",\"dateModified\":\"2015-10-26T19:28:13+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#\\\/schema\\\/person\\\/22c4c05bd657513c8b00122fa364c8d2\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2010\\\/01\\\/581.jpg\",\"contentUrl\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2010\\\/01\\\/581.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/whats-new\\\/more-dynamic-in-the-forms\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dynamic layout in the forms\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/\",\"name\":\"TeamDesk Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#\\\/schema\\\/person\\\/22c4c05bd657513c8b00122fa364c8d2\",\"name\":\"Kirill Bondar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dc5bc844095b5753ccc73c589c028bf16615674f289668146bbd59205a08a52d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dc5bc844095b5753ccc73c589c028bf16615674f289668146bbd59205a08a52d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dc5bc844095b5753ccc73c589c028bf16615674f289668146bbd59205a08a52d?s=96&d=mm&r=g\",\"caption\":\"Kirill Bondar\"},\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/author\\\/kirill-bondar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dynamic layout in the forms - TeamDesk Blog","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.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/","og_locale":"en_US","og_type":"article","og_title":"Dynamic layout in the forms - TeamDesk Blog","og_description":"We&#8217;ve just released an facility to control column behavior in the forms. You can now specify the condition and the set of changes to apply to the form&#8217;s columns when the condition is met. Consider the following scenario: We have an Activity table that will store two types of activities: Tasks and Events. The have [&hellip;]","og_url":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/","og_site_name":"TeamDesk Blog","article_published_time":"2010-01-29T14:46:00+00:00","article_modified_time":"2015-10-26T19:28:13+00:00","og_image":[{"url":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/581.jpg","type":"","width":"","height":""}],"author":"Kirill Bondar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirill Bondar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/#article","isPartOf":{"@id":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/"},"author":{"name":"Kirill Bondar","@id":"https:\/\/www.teamdesk.net\/blog\/#\/schema\/person\/22c4c05bd657513c8b00122fa364c8d2"},"headline":"Dynamic layout in the forms","datePublished":"2010-01-29T14:46:00+00:00","dateModified":"2015-10-26T19:28:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/"},"wordCount":307,"commentCount":1,"image":{"@id":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/#primaryimage"},"thumbnailUrl":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/581.jpg","articleSection":["What's New"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/","url":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/","name":"Dynamic layout in the forms - TeamDesk Blog","isPartOf":{"@id":"https:\/\/www.teamdesk.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/#primaryimage"},"image":{"@id":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/#primaryimage"},"thumbnailUrl":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/581.jpg","datePublished":"2010-01-29T14:46:00+00:00","dateModified":"2015-10-26T19:28:13+00:00","author":{"@id":"https:\/\/www.teamdesk.net\/blog\/#\/schema\/person\/22c4c05bd657513c8b00122fa364c8d2"},"breadcrumb":{"@id":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/#primaryimage","url":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/581.jpg","contentUrl":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2010\/01\/581.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.teamdesk.net\/blog\/whats-new\/more-dynamic-in-the-forms\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.teamdesk.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Dynamic layout in the forms"}]},{"@type":"WebSite","@id":"https:\/\/www.teamdesk.net\/blog\/#website","url":"https:\/\/www.teamdesk.net\/blog\/","name":"TeamDesk Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.teamdesk.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.teamdesk.net\/blog\/#\/schema\/person\/22c4c05bd657513c8b00122fa364c8d2","name":"Kirill Bondar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dc5bc844095b5753ccc73c589c028bf16615674f289668146bbd59205a08a52d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dc5bc844095b5753ccc73c589c028bf16615674f289668146bbd59205a08a52d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dc5bc844095b5753ccc73c589c028bf16615674f289668146bbd59205a08a52d?s=96&d=mm&r=g","caption":"Kirill Bondar"},"url":"https:\/\/www.teamdesk.net\/blog\/author\/kirill-bondar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":2,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts\/97\/revisions"}],"predecessor-version":[{"id":495,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts\/97\/revisions\/495"}],"wp:attachment":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/categories?post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/tags?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}