{"id":24831,"date":"2020-09-21T15:51:34","date_gmt":"2020-09-21T15:51:34","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=24831"},"modified":"2020-09-21T15:51:34","modified_gmt":"2020-09-21T15:51:34","slug":"how-to-show-form-based-on-a-condition-in-resco-mobile-app","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2020\/09\/how-to-show-form-based-on-a-condition-in-resco-mobile-app\/","title":{"rendered":"How to show Form based on a Condition in Resco Mobile App"},"content":{"rendered":"<p style=\"text-align: justify;\">With <strong>Resco Mobile App<\/strong>, we now have the ability to show a specific form of an entity. The <strong>Resco Mobile App<\/strong> provides the feature of <strong>\u2018Select Form\u2019<\/strong> to control which form should be displayed based on a condition. Often the use case is that a type (e.g. Option Set) has a dedicated form which should be shown when the type is set.<\/p>\n<p>So, let\u2019s take a look at how we can show the form based on a condition:<\/p>\n<p style=\"text-align: justify;\">We have added 2 forms on <strong>Account<\/strong> entity, one is <strong>\u2018Default\u2019<\/strong> and another is <strong>\u2018Customer\u2019<\/strong> form as shown in the below screenshot<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24834 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-1.png\" alt=\"form based on a condition in Resco Mobile App \" width=\"1100\" height=\"516\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-1.png 1100w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-1-300x141.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-1-768x360.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-1-1024x480.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-1-660x310.png 660w\" sizes=\"(max-width: 1100px) 100vw, 1100px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">In our case, we want to show the \u2018<strong>Customer Form\u2019<\/strong> if the \u2018<strong>Relationship Type\u2019<\/strong> field value is set as \u2018<strong>Customer\u2019<\/strong> on Account, otherwise, we want to show the \u2018<strong>Default\u2019<\/strong> form.<\/p>\n<p style=\"text-align: justify;\">We can see the <strong>\u2018Select Form\u2019<\/strong> rule button is available on the toolbar of an <strong>Account<\/strong> entity, as you can see in the screenshot below<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-2.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24833 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-2.png\" alt=\"form based on a condition in Resco Mobile App \" width=\"1096\" height=\"540\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-2.png 1096w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-2-300x148.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-2-768x378.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-2-1024x505.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-2-660x325.png 660w\" sizes=\"(max-width: 1096px) 100vw, 1096px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Click on the <strong>\u2018Select Form&#8217;<\/strong> button and add the rule to control which form should be displayed based on a condition. In the form rule, by using the <strong>\u2018FormName\u2019<\/strong> option we can have the ability to select the specific form from the list of forms.<\/p>\n<p>Refer to the below screenshot for the same<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-3.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24832 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-3.png\" alt=\"form based on a condition in Resco Mobile App\" width=\"1143\" height=\"625\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-3.png 1143w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-3-300x164.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-3-768x420.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-3-1024x560.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-3-660x361.png 660w\" sizes=\"(max-width: 1143px) 100vw, 1143px\" \/><\/a><strong>Save &amp; Close<\/strong> the rule. After saving and closing the rule, we can see <strong>\u2018Form Select Rule\u2019<\/strong> is added in the list of\u00a0Mobile Views, Forms and Charts.<\/p>\n<p style=\"text-align: justify;\">After publishing the changes, when the technician will open an <strong>Account<\/strong> record having the <strong>\u2018Relationship Type = Customer\u2019<\/strong>, the <strong>\u2018Customer\u2019 <\/strong>form will be shown, otherwise, the <strong>\u2018Default\u2019<\/strong> form will be shown as shown in the below screenshots<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-4.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24836 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-4.png\" alt=\"form based on a condition in Resco Mobile App \" width=\"1304\" height=\"707\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-4.png 1304w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-4-300x163.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-4-768x416.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-4-1024x555.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-4-660x358.png 660w\" sizes=\"(max-width: 1304px) 100vw, 1304px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-5.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24835 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-5.png\" alt=\"form based on a condition in Resco Mobile App \" width=\"1289\" height=\"702\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-5.png 1289w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-5-300x163.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-5-768x418.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-5-1024x558.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/form-based-on-a-condition-in-Resco-Mobile-App-5-660x359.png 660w\" sizes=\"(max-width: 1289px) 100vw, 1289px\" \/><\/a><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p style=\"text-align: justify;\">By using the <strong>\u2018Select Form\u2019<\/strong> rule button we can show the form based on a condition in <strong>Resco Mobile App<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Resco Mobile App, we now have the ability to show a specific form of an entity. The Resco Mobile App provides the feature of \u2018Select Form\u2019 to control which form should be displayed based on a condition. Often the use case is that a type (e.g. Option Set) has a dedicated form which should\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2020\/09\/how-to-show-form-based-on-a-condition-in-resco-mobile-app\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,18,19,48],"tags":[1444,1445,1446,1447,1450],"class_list":["post-24831","post","type-post","status-publish","format-standard","hentry","category-dynamics-365","category-dynamics-365-v9-2","category-dynamics-crm","category-resco-mobile-crm","tag-resco-mobile","tag-resco-mobile-app","tag-resco-mobile-app-dynamics-365-crm","tag-resco-mobile-crm","tag-resco-mobile-dynamics-crm-app"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/24831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=24831"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/24831\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=24831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=24831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=24831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}