{"id":21939,"date":"2020-01-08T12:02:00","date_gmt":"2020-01-08T12:02:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=21939"},"modified":"2022-09-02T15:55:06","modified_gmt":"2022-09-02T10:25:06","slug":"do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/","title":{"rendered":"Do we still need to use setSubmitMode to save the value of a read-only attribute?"},"content":{"rendered":"<p><strong>Introduction:<\/strong><\/p>\n<p style=\"text-align: justify;\">Before we get to the answer to this question, first we will see what the use of setSubmitMode is. The <a href=\"https:\/\/docs.microsoft.com\/en-us\/powerapps\/developer\/model-driven-apps\/clientapi\/reference\/attributes\/setsubmitmode\">setSubmitMode<\/a> is a method to set whether data from the attribute will be submitted when the record is saved.<\/p>\n<p>This method accepts one of the below values as a parameter;<\/p>\n<ul>\n<li><strong>Always:<\/strong> If we set as <strong>\u2018\u2019always\u2019\u2019<\/strong> then data of the attribute will always be sent with a save. Data will be saved always even though the attribute is not dirty.<\/li>\n<li><strong>Never:<\/strong> If we set as <strong>\u2018\u2019never\u2019\u2019<\/strong> then data of the attribute will never be sent with a save. Data will not be saved even when value\/data of the field is changed. We use this mode when we don\u2019t want to capture the value but want to trigger some logic on change of the attribute.<\/li>\n<li><strong>Dirty:<\/strong> This mode will send the data with a save or when it has been changed.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">If we ask any CRM developer what is the use of setSubmitMode method along with the aforementioned details we will get one more answer i.e. we have to use setSubmitMode with <strong>\u2018\u2019always\u2019\u2019<\/strong> to save the value of read-only attribute. If we have a read-only attribute on the form and want to set the value through script then we would need to write an additional line of code i.e. setSubmitMode with <strong>\u2018\u2019always\u2019\u2019<\/strong> parameter.<\/p>\n<pre>Xrm.Page.getAttribute(\"new_availablecredit\").setValue(2000);\r\n\r\nXrm.Page.getAttribute(\"new_availablecredit\").setSubmitMode(\"always\");<\/pre>\n<p style=\"text-align: justify;\">But this have been changed from Dynamics 365 9.x version. Now, we don\u2019t need to use this additional line of code to send the value of the read-only attribute. This is explained in the below link where you can see we are copying the value of <strong>\u201cCredit\u201d<\/strong> attribute to read-only <strong>\u201cAvailable Credit\u201d<\/strong> attribute.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-21957\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/01\/Demo.gif\" alt=\"\" width=\"800\" height=\"450\" \/><\/p>\n<p>And the below code is used on change of <strong>\u201cCredit\u201d<\/strong> attribute:<\/p>\n<pre>function\u00a0calculateCredit(context)\u00a0{\r\n\r\n\u00a0\u00a0\u00a0\u00a0try\u00a0{\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0var\u00a0formContext\u00a0=\u00a0context.getFormContext();\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0var\u00a0credit\u00a0=\u00a0formContext.getAttribute(\"creditlimit\").getValue();\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0formContext.getAttribute(\"new_availablecredit\").setValue(credit);\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\r\n\r\n\u00a0\u00a0\u00a0\u00a0}\u00a0catch\u00a0(error)\u00a0{\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0throw\u00a0new\u00a0Error(error.message);\r\n\r\n\u00a0\u00a0\u00a0\u00a0}\r\n\r\n}<\/pre>\n<p><strong>Conclusion:<\/strong><\/p>\n<p style=\"text-align: justify;\">So basically, the value of the read-only field can be saved without writing an additional setSubmitMode method. Moreover, this also works in both classic web and Unified interface.<\/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: Before we get to the answer to this question, first we will see what the use of setSubmitMode is. The setSubmitMode is a method to set whether data from the attribute will be submitted when the record is saved. This method accepts one of the below values as a parameter; Always: If we set\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/\">Read More: Do we still need to use setSubmitMode to save the\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":21973,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[533,1993,1992],"class_list":["post-21939","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-365","tag-dynamics-365","tag-read-only-attributes","tag-setsubmitmode"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"The value of the read-only field can be saved without writing an additional setSubmitMode method. Moreover, this also works in both classic web and Unified interface.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Inogic\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Do we still need to use setSubmitMode to save the value of a read-only attribute? - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"The value of the read-only field can be saved without writing an additional setSubmitMode method. Moreover, this also works in both classic web and Unified interface.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/01\/Demo.gif\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/01\/Demo.gif\" \/>\n\t\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-01-08T12:02:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-09-02T10:25:06+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Do we still need to use setSubmitMode to save the value of a read-only attribute? - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"The value of the read-only field can be saved without writing an additional setSubmitMode method. Moreover, this also works in both classic web and Unified interface.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/01\/Demo.gif\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Inogic\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#blogposting\",\"name\":\"Do we still need to use setSubmitMode to save the value of a read-only attribute? - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Do we still need to use setSubmitMode to save the value of a read-only attribute?\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/4-2.jpg\",\"width\":150,\"height\":140},\"datePublished\":\"2020-01-08T12:02:00+05:30\",\"dateModified\":\"2022-09-02T15:55:06+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#webpage\"},\"articleSection\":\"Dynamics 365, Dynamics 365, read-only attributes, setSubmitMode\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"position\":2,\"name\":\"Dynamics 365\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#listItem\",\"name\":\"Do we still need to use setSubmitMode to save the value of a read-only attribute?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#listItem\",\"position\":3,\"name\":\"Do we still need to use setSubmitMode to save the value of a read-only attribute?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/\",\"name\":\"Inogic\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Inogic\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/\",\"name\":\"Do we still need to use setSubmitMode to save the value of a read-only attribute? - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"The value of the read-only field can be saved without writing an additional setSubmitMode method. Moreover, this also works in both classic web and Unified interface.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/4-2.jpg\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#mainImage\",\"width\":150,\"height\":140},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/01\\\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\\\/#mainImage\"},\"datePublished\":\"2020-01-08T12:02:00+05:30\",\"dateModified\":\"2022-09-02T15:55:06+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Do we still need to use setSubmitMode to save the value of a read-only attribute? - Microsoft Dynamics 365 CRM Tips and Tricks","description":"The value of the read-only field can be saved without writing an additional setSubmitMode method. Moreover, this also works in both classic web and Unified interface.","canonical_url":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#blogposting","name":"Do we still need to use setSubmitMode to save the value of a read-only attribute? - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Do we still need to use setSubmitMode to save the value of a read-only attribute?","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/01\/4-2.jpg","width":150,"height":140},"datePublished":"2020-01-08T12:02:00+05:30","dateModified":"2022-09-02T15:55:06+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#webpage"},"articleSection":"Dynamics 365, Dynamics 365, read-only attributes, setSubmitMode"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","position":2,"name":"Dynamics 365","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#listItem","name":"Do we still need to use setSubmitMode to save the value of a read-only attribute?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#listItem","position":3,"name":"Do we still need to use setSubmitMode to save the value of a read-only attribute?","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/","name":"Inogic","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Inogic"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/","name":"Do we still need to use setSubmitMode to save the value of a read-only attribute? - Microsoft Dynamics 365 CRM Tips and Tricks","description":"The value of the read-only field can be saved without writing an additional setSubmitMode method. Moreover, this also works in both classic web and Unified interface.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/01\/4-2.jpg","@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#mainImage","width":150,"height":140},"primaryImageOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/#mainImage"},"datePublished":"2020-01-08T12:02:00+05:30","dateModified":"2022-09-02T15:55:06+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"Do we still need to use setSubmitMode to save the value of a read-only attribute? - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"The value of the read-only field can be saved without writing an additional setSubmitMode method. Moreover, this also works in both classic web and Unified interface.","og:url":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/01\/Demo.gif","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/01\/Demo.gif","og:image:width":800,"og:image:height":450,"article:published_time":"2020-01-08T12:02:00+00:00","article:modified_time":"2022-09-02T10:25:06+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Do we still need to use setSubmitMode to save the value of a read-only attribute? - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"The value of the read-only field can be saved without writing an additional setSubmitMode method. Moreover, this also works in both classic web and Unified interface.","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/01\/Demo.gif","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"21939","title":null,"description":"The value of the read-only field can be saved without writing an additional setSubmitMode method. Moreover, this also works in both classic web and Unified interface.","keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-02 07:21:48","updated":"2025-07-04 07:15:09","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/\" title=\"Dynamics 365\">Dynamics 365<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tDo we still need to use setSubmitMode to save the value of a read-only attribute?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Dynamics 365","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/"},{"label":"Do we still need to use setSubmitMode to save the value of a read-only attribute?","link":"https:\/\/www.inogic.com\/blog\/2020\/01\/do-we-still-need-to-use-setsubmitmode-to-save-the-value-of-a-read-only-attribute\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/21939","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=21939"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/21939\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/21973"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=21939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=21939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=21939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}