{"id":4433,"date":"2017-02-09T20:19:49","date_gmt":"2017-02-09T14:49:49","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=4433"},"modified":"2022-09-02T16:49:18","modified_gmt":"2022-09-02T11:19:18","slug":"controls-in-dynamics-365-for-mobile-app-input-mask","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2017\/02\/controls-in-dynamics-365-for-mobile-app-input-mask\/","title":{"rendered":"Controls in Dynamics 365 for Mobile App: Input Mask"},"content":{"rendered":"<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"wp-image-4434\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/Controls.png\" alt=\"Controls In Dynamics 365 for Mobile App: Input Mask\" width=\"788\" height=\"443\" \/><\/p>\n<p style=\"text-align: justify;\"><strong>Introduction:<\/strong><\/p>\n<p style=\"text-align: justify;\">Dynamics 365 provides a wide variety of controls which allow developers to add interactive components in the Dynamics 365 mobile app. Each control supports a specific set of input so you can handle variety of data inputs, for instance when a user enters a text, scans a barcode or simply touches a button.<\/p>\n<p style=\"text-align: justify;\">This is a blog series where we will explore various Controls in Dynamics 365 and their use case scenario. Let us start with Input Mask control which is a user generated set of rules to validate the field. It oversees what a user is allowed to input in a text field. This control allow users to set the formatting for a field like phone number, postal code, credit card number, etc. to prevent transcription errors for Mobile and Tablet users.<\/p>\n<p style=\"text-align: justify;\"><strong>Note:<\/strong> Input Mask control only supports Single Line of Text field type.<\/p>\n<p style=\"text-align: justify;\"><strong>Let us see an example where we want to allow users to add the phone number in the field on the Account record, in a format predefined by us:<\/strong><\/p>\n<ol style=\"text-align: justify;\">\n<li>Create a field of Single Line of Text type as \u2018Phone\u2019 on the Account entity form, as shown below;<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter wp-image-4435 size-large\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/step-1-1024x580.png\" alt=\"Controls in Dynamics 365\" width=\"665\" height=\"376\" \/><\/p>\n<ol style=\"text-align: justify;\" start=\"2\">\n<li>Select the created field \u2018phone\u2019 and click on Change Properties and then select controls from Field Properties to Add Control, as shown in the screenshot below;<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter wp-image-4436 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/step-2.png\" alt=\"Input Mask Control\" width=\"594\" height=\"727\" \/><\/p>\n<ol style=\"text-align: justify;\" start=\"3\">\n<li>Now add the Input Mask control as shown below;<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter wp-image-4437 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/step-3.png\" alt=\"Input Mask control Dynamics 365\" width=\"475\" height=\"437\" \/><\/p>\n<ol style=\"text-align: justify;\" start=\"4\">\n<li>Then enable the control for Mobile and Tablet, as seen in the screenshot below;<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter wp-image-4438 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/step-4.png\" alt=\"Controls in Dynamics 365 for Mobile and Tablet\" width=\"593\" height=\"724\" \/><\/p>\n<ol style=\"text-align: justify;\" start=\"5\">\n<li>Users can configure the Mask property in two ways as follows:\n<ul>\n<li><strong>Bind to a static value<\/strong><\/li>\n<li><strong>Bind to a value on a field<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p style=\"text-align: justify;\">Let us explore both the ways in detail;<\/p>\n<ul style=\"text-align: justify;\">\n<li><strong>Bind to a static value<\/strong>:\n<ul>\n<li>Users can create the format of the field in which they want to enter the data by using the available options, as seen in the screenshot below;<img decoding=\"async\" class=\"aligncenter wp-image-4439 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/step-5.png\" alt=\"Input Mask Controls\" width=\"504\" height=\"437\" \/><\/li>\n<li>It will set the mask on \u201cphone\u201d field and allow users to enter the data as per the predefined format or mask.<img decoding=\"async\" class=\"aligncenter wp-image-4440 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/step-6.png\" alt=\"Controls in Dynamics 365 for Mobile\" width=\"423\" height=\"719\" \/><\/li>\n<li>If any user tries to enter the data in another format, it will show the following error;<img decoding=\"async\" class=\"aligncenter wp-image-4441 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/step-7.png\" alt=\"Input Mask Controls in Dynamics 365\" width=\"422\" height=\"718\" \/><\/li>\n<\/ul>\n<\/li>\n<li><strong>Bind to a value on a field<\/strong>:\n<ul>\n<li>This is another way to apply predefined field mask. It will show the list of string fields available on the entity form.<\/li>\n<li>In the below example, we are going to store the format of the value in a field and will refer the same field for validation.<\/li>\n<li>First, we created a field named \u201cPhone No. Format\u201d and stored the format of the value in it:<img decoding=\"async\" class=\"aligncenter wp-image-4442 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/step-8.png\" alt=\"Controls in Dynamics 365\" width=\"826\" height=\"442\" \/><\/li>\n<li>Then, we hide this field on the form as seen in the screenshot below;<img decoding=\"async\" class=\"aligncenter wp-image-4443 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/step-9.png\" alt=\"Input Mask Controls in Dynamics 365 for Tablet\" width=\"593\" height=\"723\" \/><\/li>\n<li>Now, we will refer the created format by using <strong>Bind to a value on a field<\/strong> option as shown below;<img decoding=\"async\" class=\"aligncenter wp-image-4444 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/step-10.png\" alt=\"Controls in Dynamics 365 for Tablet\" width=\"587\" height=\"720\" \/><\/li>\n<li>After following the above mentioned steps, users can now enter the phone number only in the format predefined by us.<img decoding=\"async\" class=\"aligncenter wp-image-4445 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/step-11.png\" alt=\"Mask Controls in Dynamics 365\" width=\"423\" height=\"721\" \/><\/li>\n<li>If any user tries to enter it in another format , it will show the following error;<img decoding=\"async\" class=\"aligncenter wp-image-4446 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2017\/02\/step-12.png\" alt=\"Controls in Dynamics 365 for Mobile and Tablet\" width=\"425\" height=\"722\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Conclusion: <\/strong>Input Mask Control will help to maintain data integrity by eliminating data entry errors by users on Mobile or Tablet. This is extremely useful in situations where we want to ensure that important data like credit card number, postal code, phone number, etc. is entered in the correct format by the users.<\/p>\n<h2 style=\"text-align: left;\"><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\">Generate Your Own New Leads Within Microsoft Dynamics 365 CRM<\/div><\/div><\/h2>\n<p><em>Contact us for a <a href=\"https:\/\/www.maplytics.com\/maplytics-download\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">demo<\/a> to know more about how <a href=\"https:\/\/www.maplytics.com\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">Maplytics<\/a> can help you to generate new leads from within Microsoft Dynamics 365 CRM.<\/em><\/p>\n<p><em><a href=\"https:\/\/www.maplytics.com\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">Maplytics<\/a> is a 5-star rated, preferred business app on the <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/inogic.f6f3c73f-29de-4fa8-a396-87ea8a07b6c4?tab=Overview\" target=\"_blank\" rel=\"noopener\">Microsoft AppSource<\/a> that is Certified for Microsoft Dynamics 365 (CfMD) and comes with powerful features like Appointment Planning, Sales Routing, Territory Management, Heat Maps, Geo-analytical Dashboards and more that empower organizations to add more value to their CRM data, improve sales &amp; service processes, and achieve high ROI.<\/em><\/p>\n<p><em>Get your <a href=\"https:\/\/www.maplytics.com\/maplytics-download\/?utm_source=highvisits&amp;utm_medium=technicalblog&amp;utm_campaign=hMaplytics\" target=\"_blank\" rel=\"noopener\">free trial<\/a> from our Website or <a href=\"https:\/\/appsource.microsoft.com\/en-us\/product\/dynamics-365\/inogic.f6f3c73f-29de-4fa8-a396-87ea8a07b6c4?tab=Overview\" target=\"_blank\" rel=\"noopener\">Microsoft AppSource<\/a>!<\/em><\/p>\n<p><em>&#8216;If data is the new oil, location intelligence is ??\u201d<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Dynamics 365 provides a wide variety of controls which allow developers to add interactive components in the Dynamics 365 mobile app. Each control supports a specific set of input so you can handle variety of data inputs, for instance when a user enters a text, scans a barcode or simply touches a button. This\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2017\/02\/controls-in-dynamics-365-for-mobile-app-input-mask\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":4437,"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":[13,16,40],"tags":[341,342,565,939],"class_list":["post-4433","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customizations","category-dynamics-365","category-mobile-controls","tag-controls-in-dynamics-365","tag-controls-in-dynamics-365-for-mobile-app","tag-dynamics-365-mobile-app","tag-input-mask-control"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/4433","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=4433"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/4433\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/4437"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=4433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=4433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=4433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}