{"id":13753,"date":"2018-12-26T12:00:04","date_gmt":"2018-12-26T12:00:04","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=13753"},"modified":"2021-12-15T16:18:51","modified_gmt":"2021-12-15T10:48:51","slug":"how-to-make-optional-fields-as-mandatory-fields-in-dynamics-365-portal","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2018\/12\/how-to-make-optional-fields-as-mandatory-fields-in-dynamics-365-portal\/","title":{"rendered":"How to Make Optional Fields as Mandatory Fields in Dynamics 365 Portal"},"content":{"rendered":"<p><strong>Introduction:<\/strong><\/p>\n<p style=\"text-align: justify;\">Dynamics 365 Portals helps people to access CRM data outside CRM environment and that too at times with people accessing portal may not have login privileges to CRM. So there can be scenarios where in CRM, admin level users can create contacts in CRM and give those contacts just access to portal. So it\u2019s understandable that admin users may not have many details of contacts like for example Bank Details, to whom portal access needs to be given, at the time of creation of contacts. But in such situation, we can configure portal in such a way that when a contact log in to the portal, he\/she can be prompted to fill the details like Bank details which may be required further for business.<\/p>\n<p style=\"text-align: justify;\">Recently we had such a client requirement, where the client wanted to create contacts, to let those created contacts access their portals, with minimum information available to admin users. But the client wanted the contacts (portal users) to fill in their bank details as a required process from portal. i.e In CRM, admin users won\u2019t fill Bank details at time of portal contacts creation. But once those contacts sign into portal, they were explicitly made to fill Bank details as a mandatory business process.<\/p>\n<p style=\"text-align: justify;\">i.e\u00a0 \u00a0In technical terms, CRM Admin users must be able to create portal contacts in CRM without filling bank details (as those fields will be optional in CRM) and portal users must be made to fill in all the bank details when they visit the page containing bank information on portal which can be achieved by making those optional bank related fields of CRM as mandatory fields in portal. So by doing some portal configurations explained below we were able to achieve the same.<\/p>\n<p style=\"text-align: justify;\">So as an example we have a created sample contact form in our trial environment. Below screenshot is the sample contact form visible in CRM which we will be using in the entity form used in the sample web page say \u201cBank Details\u201d to be displayed on our sample portal. As seen in the screenshot below, the highlighted fields are optional fields in CRM.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13754\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/1How-to-Make-Optional-Fields-as-Mandatory-Fields-in-Dynamics-365-Portal.png\" alt=\"How to Make Optional Fields as Mandatory Fields in Dynamics 365 Portal\" width=\"1581\" height=\"522\" \/><\/p>\n<p style=\"text-align: justify;\">Now we will create an entity form \u201cBank Details\u201d where we will display the tab \u201cBank Details\u201d of the above sample contact form. This entity form will be displayed on portal on the sample web page \u201cBank\u00a0 Details\u201d as seen below.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13755\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/2How-to-Make-Optional-Fields-as-Mandatory-Fields-in-Dynamics-365-Portal.png\" alt=\"How to Make Optional Fields as Mandatory Fields in Dynamics 365 Portal\" width=\"1235\" height=\"474\" \/><\/p>\n<p style=\"text-align: justify;\">Currently in the portal too, the fields in bank details are optional as seen in the contact form in CRM.<\/p>\n<p>Now do the following steps on entity form for each field you want to make mandatory for portal.<\/p>\n<ul>\n<li>Go to the section \u201cEntity Form Metadata\u201d as seen in the screenshot below of an entity form and click on \u201c+\u201d sign of the entity form metadata subgrid to create a record of entity form metadata to do configuration of each field which is to be made mandatory on portal<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13756\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/3How-to-Make-Optional-Fields-as-Mandatory-Fields-in-Dynamics-365-Portal.png\" alt=\"How to Make Optional Fields as Mandatory Fields in Dynamics 365 Portal\" width=\"1532\" height=\"698\" \/><\/p>\n<ul>\n<li>So on the create page of entity form metadata record, select the option \u201c<strong>Attribute<\/strong>\u201d for the field \u201c<strong><em>Type<\/em><\/strong>\u201d and select the field to be made mandatory on portal(in our example Account number) for the field \u201c<strong><em>Attribute Logical Name<\/em><\/strong>\u201d as highlighted in the screenshot below.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13757\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/4How-to-Make-Optional-Fields-as-Mandatory-Fields-in-Dynamics-365-Portal.png\" alt=\"How to Make Optional Fields as Mandatory Fields in Dynamics 365 Portal\" width=\"1544\" height=\"754\" \/><\/p>\n<ul>\n<li>Now scroll down to the section titled \u201cValidation\u201d in the entity form metadata record and there\u2019s an empty checkbox option titled \u201cField Required\u201d as seen &amp; highlighted in the screenshot below. Tick that option to make the field mentioned in entity form metadata record as mandatory on portal.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13761\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/5How-to-Make-Optional-Fields-as-Mandatory-Fields-in-Dynamics-365-Portal-1.png\" alt=\"How to Make Optional Fields as Mandatory Fields in Dynamics 365 Portal\" width=\"1525\" height=\"685\" \/><\/p>\n<ul>\n<li>Save this record of entity form metadata and refresh the bank details page on portal. You can see now account number field (which is still an optional field in CRM) is now mandatory field on portal as seen in the screenshot below.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-13762\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2018\/12\/6How-to-Make-Optional-Fields-as-Mandatory-Fields-in-Dynamics-365-Portal-1.png\" alt=\"How to Make Optional Fields as Mandatory Fields in Dynamics 365 Portal\" width=\"1222\" height=\"470\" \/><\/p>\n<p><strong>Conclusion:<\/strong><\/p>\n<p>So in this way user can do the portal configurations to make optional fields of CRM as business required fields on portal.<\/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\">Cut short 90% of your manual work and repetitive data entry!<\/div><\/div><\/h2>\n<p style=\"text-align: left;\"><em>Get 1 Click apps and say goodbye to all repetitive data entry in CRM &#8211;<\/em><br \/>\n<em><strong><a href=\"https:\/\/bit.ly\/3oH7dYw\" target=\"_blank\" rel=\"noopener noreferrer\">Click2Clone<\/a> <\/strong>\u2013 Clone\/Copy Dynamics 365 CRM records in 1 Click<\/em><br \/>\n<em><strong><a href=\"https:\/\/bit.ly\/3EPjAYc\" target=\"_blank\" rel=\"noopener noreferrer\">Click2Export<\/a><\/strong> \u2013 Export Dynamics 365 CRM Report\/CRM Views\/Word\/Excel template in 1 Click<\/em><br \/>\n<em><strong><a href=\"https:\/\/bit.ly\/3EN8h2v\" target=\"_blank\" rel=\"noopener noreferrer\">Click2Undo<\/a><\/strong> \u2013 Undo &amp; Restore Dynamics 365 CRM data in 1 Click<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Dynamics 365 Portals helps people to access CRM data outside CRM environment and that too at times with people accessing portal may not have login privileges to CRM. So there can be scenarios where in CRM, admin level users can create contacts in CRM and give those contacts just access to portal. So it\u2019s\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2018\/12\/how-to-make-optional-fields-as-mandatory-fields-in-dynamics-365-portal\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":13760,"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,37],"tags":[569,1029,1162],"class_list":["post-13753","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","category-dynamics-365-v9-2","category-dynamics-crm","category-microsoft-portals","tag-dynamics-365-portal","tag-mandatory-fields-in-dynamics-365-portal","tag-microsoft-portal"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/13753","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=13753"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/13753\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/13760"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=13753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=13753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=13753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}