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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Lock field in business...
Power Apps
Unanswered

Lock field in business flow with business rule

(0) ShareShare
ReportReport
Posted on by 124

I want to lock fields in business flow via business rules i tried it but it doesnt seem to work for som

Screenshot 2023-12-07 124229.png

Screenshot 2023-12-07 124221.png

e reason any help

I have the same question (0)
  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @Sean9 What have you set the scope of your Business Rule to? Try and set it to Entity to see if that makes a difference (if it's not already set to Entity)

  • Jonathan Manrique Profile Picture
    2,687 on at

    Hi @Sean9 

     

    In the case of BPF fields you must do it with JS since they are part of the BPF instance

    You should know that to access that column you must use the header_columna prefix

     

    function bloquearcampo(executionContext)
    { 
     var formContext = executionContext.getFormContext();
     formContext.getControl('header_statecode').setDisabled(true)
    }

     

    You must place this JS in the onload of the form

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    You can accept more than one post as a solution

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard