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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to bind javascript in subgrid?

(1) ShareShare
ReportReport
Posted on by 10
Hi, I have a requirement there is a Project Entity under that there are few sub grid like Tasks, Estimates etc., If I change any field in Tasks tab then another field in the same tab should be locked for particular security role. I have tried multiple ways then I found a way to do it by JS but don't know whether this is the correct approach or not. Can anyone help me to answer this. Thanks in advance.
I have the same question (0)
  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Moderator on at
    If you need to lock and unlock fields on a form based on the value of another field and restrict access for certain security roles, JavaScript is a good option. However, if users can update the record through bulk upload or by editing via Advanced Find, JavaScript alone won’t cover these scenarios since it only applies to form interactions.
     
    If form-level control is your only requirement, JavaScript will work well. But if you need to enforce these restrictions regardless of how the record is modified, a server-side plugin is more suitable. The plugin can check permissions and apply field-level security during record updates.
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 151 Super User 2026 Season 1

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 51 Most Valuable Professional

#3
NeerajPawar Profile Picture

NeerajPawar 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans