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

Notifications

Announcements

No record found.

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)
  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    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

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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 
        }
    }


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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans