{"id":1541,"date":"2015-08-05T16:45:07","date_gmt":"2015-08-05T11:15:07","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=1541"},"modified":"2026-02-03T11:09:30","modified_gmt":"2026-02-03T05:39:30","slug":"applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/","title":{"rendered":"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>Anyone who would have tried using the api functions available to access the controls on the Business Process Flow to hide\/lock in CRM 2013 would know that the function only worked if the control was on the current active stage on the form.<\/p>\n<p>Suppose you had 2 stages Develop and Propose and you had a field added to the Propose stage. This field should be conditionally editable. Back then we could write code on the form load to access the control and lock\/hide it. This is available as a blog written earlier explaining this new availability <a href=\"https:\/\/www.inogic.com\/blog\/2014\/07\/how-to-apply-script-on-header-fields-and-bpf-fields\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.inogic.com\/blog\/2014\/07\/how-to-apply-script-on-header-fields-and-bpf-fields\/<\/a><\/p>\n<p>However, this code failed to lock\/hide the field if when you open the form, the current stage was Develop and not Propose. The reason being the controls on the other stages were not created on the form, only the controls on the current stage of the BPF were available.<\/p>\n<p>This really made this unusable as it is not necessary that the control that we need to hide\/lock would be on the active stage always.<\/p>\n<h2>How to Fix this?<\/h2>\n<p>With CRM 2015, we now have the ability to add hooks to the stage change event. You can attach a function to the OnStageChange event that is executed whenever you move to the Previous\/Next stage in the BPF. The OnStageChange event would only execute when the stage is changed, we noticed that now if you write the code to access the controls on BPF of a stage that is not the active one, it does find the control and lock\/hide it as desired. This ensures that even simply switching between the process tabs, ensure that the field is locked and there is no way to edit the control on the BPF.<\/p>\n<h2>Here is how we do it:<\/h2>\n<p>Add the following code on the form load event<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2015\/08\/locking-fields.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1542\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2015\/08\/locking-fields.png\" alt=\"locking fields\" width=\"521\" height=\"314\" \/><\/a><\/p>\n<p>Note we are attaching the event handle to the StageChange event of the BPF<\/p>\n<p>Here is the code in the lockBPFFields<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2015\/08\/locking-fields1.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1543\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2015\/08\/locking-fields1.png\" alt=\"locking fields1\" width=\"486\" height=\"265\" \/><\/a><\/p>\n<p>The fields in the BPF should be accessed as <strong>header_process_&lt;attribute name&gt;<\/strong>.<\/p>\n<p>After you have this code published, you will find that fields locked through the above code, it non-editable irrespective of the active BPF stage you are in and the controls that need to be locked are in.<\/p>\n<p>Need more from your Dynamics CRM? Avoid double entry data work. Check our <a href=\"https:\/\/www.inogic.com\/product\/integrations\/inolink-quickbooks-microsoft-dynamics-crm\/\" target=\"_blank\" rel=\"noopener\">Inolink<\/a> to promote orders\/invoices from QuickBooks to Dynamics CRM. Email us on crm@inogic.com for a trial or if you would like to see a live demo.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Anyone who would have tried using the api functions available to access the controls on the Business Process Flow to hide\/lock in CRM 2013 would know that the function only worked if the control was on the current active stage on the form. Suppose you had 2 stages Develop and Propose and you had\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/\">Read More: Applying Scripts on Business Process Flow controls in Dynamics CRM\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,15,22,24,33],"tags":[597,1096],"class_list":["post-1541","post","type-post","status-publish","format-standard","hentry","category-business-process-flows","category-development","category-dynamics-crm-2015","category-dynamics-crm-2016","category-javascript","tag-dynamics-crm-2015","tag-microsoft-dynamic-crm"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction Anyone who would have tried using the api functions available to access the controls on the Business Process Flow to hide\/lock in CRM 2013 would know that the function only worked if the control was on the current active stage on the form. Suppose you had 2 stages Develop and Propose and you had\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Tushar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/\" \/>\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=\"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015 - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction Anyone who would have tried using the api functions available to access the controls on the Business Process Flow to hide\/lock in CRM 2013 would know that the function only worked if the control was on the current active stage on the form. Suppose you had 2 stages Develop and Propose and you had\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2015\/08\/locking-fields.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2015\/08\/locking-fields.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2015-08-05T11:15:07+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-02-03T05:39:30+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=\"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015 - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction Anyone who would have tried using the api functions available to access the controls on the Business Process Flow to hide\/lock in CRM 2013 would know that the function only worked if the control was on the current active stage on the form. Suppose you had 2 stages Develop and Propose and you had\" \/>\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\/2015\/08\/locking-fields.png\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Tushar\" \/>\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\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/#blogposting\",\"name\":\"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015 - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015\",\"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\\\/2015\\\/08\\\/locking-fields.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/#articleImage\"},\"datePublished\":\"2015-08-05T16:45:07+05:30\",\"dateModified\":\"2026-02-03T11:09:30+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/#webpage\"},\"articleSection\":\"Business Process Flows, Development, Dynamics CRM 2015, Dynamics CRM 2016, JavaScript, Dynamics CRM 2015, Microsoft Dynamic CRM\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/#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-crm\\\/#listItem\",\"name\":\"Dynamics CRM\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"position\":2,\"name\":\"Dynamics CRM\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2015\\\/#listItem\",\"name\":\"Dynamics CRM 2015\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2015\\\/#listItem\",\"position\":3,\"name\":\"Dynamics CRM 2015\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2015\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/#listItem\",\"name\":\"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/#listItem\",\"name\":\"Dynamics CRM\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/#listItem\",\"position\":4,\"name\":\"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-crm\\\/dynamics-crm-2015\\\/#listItem\",\"name\":\"Dynamics CRM 2015\"}}]},{\"@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\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/#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\":\"Tushar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Tushar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/\",\"name\":\"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015 - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Introduction Anyone who would have tried using the api functions available to access the controls on the Business Process Flow to hide\\\/lock in CRM 2013 would know that the function only worked if the control was on the current active stage on the form. Suppose you had 2 stages Develop and Propose and you had\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2015\\\/08\\\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"datePublished\":\"2015-08-05T16:45:07+05:30\",\"dateModified\":\"2026-02-03T11:09:30+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":"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015 - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction Anyone who would have tried using the api functions available to access the controls on the Business Process Flow to hide\/lock in CRM 2013 would know that the function only worked if the control was on the current active stage on the form. Suppose you had 2 stages Develop and Propose and you had","canonical_url":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/#blogposting","name":"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015 - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015","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\/2015\/08\/locking-fields.png","@id":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/#articleImage"},"datePublished":"2015-08-05T16:45:07+05:30","dateModified":"2026-02-03T11:09:30+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/#webpage"},"articleSection":"Business Process Flows, Development, Dynamics CRM 2015, Dynamics CRM 2016, JavaScript, Dynamics CRM 2015, Microsoft Dynamic CRM"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/#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-crm\/#listItem","name":"Dynamics CRM"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","position":2,"name":"Dynamics CRM","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2015\/#listItem","name":"Dynamics CRM 2015"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2015\/#listItem","position":3,"name":"Dynamics CRM 2015","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2015\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/#listItem","name":"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/#listItem","name":"Dynamics CRM"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/#listItem","position":4,"name":"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2015\/#listItem","name":"Dynamics CRM 2015"}}]},{"@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\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/#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":"Tushar","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Tushar"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/","name":"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015 - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction Anyone who would have tried using the api functions available to access the controls on the Business Process Flow to hide\/lock in CRM 2013 would know that the function only worked if the control was on the current active stage on the form. Suppose you had 2 stages Develop and Propose and you had","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"datePublished":"2015-08-05T16:45:07+05:30","dateModified":"2026-02-03T11:09:30+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":"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015 - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Introduction Anyone who would have tried using the api functions available to access the controls on the Business Process Flow to hide\/lock in CRM 2013 would know that the function only worked if the control was on the current active stage on the form. Suppose you had 2 stages Develop and Propose and you had","og:url":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2015\/08\/locking-fields.png","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2015\/08\/locking-fields.png","article:published_time":"2015-08-05T11:15:07+00:00","article:modified_time":"2026-02-03T05:39:30+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015 - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Introduction Anyone who would have tried using the api functions available to access the controls on the Business Process Flow to hide\/lock in CRM 2013 would know that the function only worked if the control was on the current active stage on the form. Suppose you had 2 stages Develop and Propose and you had","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2015\/08\/locking-fields.png","twitter:label1":"Written by","twitter:data1":"Tushar","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"1541","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"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":"","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":"BlogPosting","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":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2023-02-02 06:14:51","updated":"2026-02-03 05:46:04","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-crm\/\" title=\"Dynamics CRM\">Dynamics CRM<\/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-crm\/dynamics-crm-2015\/\" title=\"Dynamics CRM 2015\">Dynamics CRM 2015<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tApplying Scripts on Business Process Flow controls in Dynamics CRM 2015\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Dynamics CRM","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/"},{"label":"Dynamics CRM 2015","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-crm\/dynamics-crm-2015\/"},{"label":"Applying Scripts on Business Process Flow controls in Dynamics CRM 2015","link":"https:\/\/www.inogic.com\/blog\/2015\/08\/applying-scripts-on-business-process-flow-controls-in-dynamics-crm-2015\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/1541","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=1541"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/1541\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=1541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=1541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=1541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}