web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 365 is it possible to make field read only on Business Process Flow.

(0) ShareShare
ReportReport
Posted on by 6

Hello All Experts,

How to handle the above scenario?

i want to the field to be read only to the user on business process flow and the value needs to be changed only when the form loads and when user clicks on Next Stage or Previous Stage button.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: CRM 365 is it possible to make field read only on Business Process Flow.

    Hi,

    Try with this  - 

    function Form_OnloadBPF() {
        Xrm.Page.data.process.addOnStageChange(checkSelectedStage);
    }
    
    function checkSelectedStage() {
        if (Xrm.Page.getControl("header_process_FieldName") != null) {
            Xrm.Page.getControl("header_process_FieldName").setDisabled(true); // Replace only FieldName 
            Xrm.Page.getAttribute("header_process_FieldName").setSubmitMode("always");// This is important step. Replace only FieldName 
        }
    }


  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,626 on at
    RE: CRM 365 is it possible to make field read only on Business Process Flow.

    Hi,

    you can use JS to achieve

    www.inogic.com/.../how-to-apply-script-on-header-fields-and-bpf-fields

    you can register the function using addOnStageChange. This will trigger the function when user click next stage or previous stage.

    V9 docs.microsoft.com/.../addonstagechange

    V8 https://msdn.microsoft.com/en-us/library/dn817878.aspx

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans