Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Shared records using access team, Forms are read only in UI but form state in JS as 'Update'

Posted on by

Hi,

According to users requirement, I am sharing records across business units, using Access Teams. Record is read only, but ribbon buttons are enable. 

I wanted to make ribbon buttons hidden or disabled.

I am checking FormType using Javascript(Xrm.Page.ui.getFormType()),  getting value as '2' i.e. 'Update' mode. Ideally form is read only. Form Type output should be '3' i.e. ReadOnly.

Second option, checking fields on form whether disabled using JS (Xrm.Page.getControl(arg).getDisabled()), output on 'main' form as disabled = true. But in ISH(Interactive Service Hub) form, getting value as 'false'.(Ideally it should work same in both forms.)

Third option checking business unit and user role in JS and give permissions accordingly.

CRM version is CRM 2016 and working on main and ISH forms. 

Is there any other simple approach? Please suggest.

Thanks in Advance

Akshata

*This post is locked for comments

  • RE: Shared records using access team, Forms are read only in UI but form state in JS as 'Update'

    There are some combinations of  validations and I have to check it from JS

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Shared records using access team, Forms are read only in UI but form state in JS as 'Update'

    You can use FormStateRule for it

    4150._21043D0438043C043E043A04_.PNG

  • RE: Shared records using access team, Forms are read only in UI but form state in JS as 'Update'

    Thanks Uriy for quick  response.

    Ribbon customization is fine.

    But is there any other option to check  whether form is disable(or ReadOnly) or not. (specially ISH form) in case when record is shared using Access Team.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Shared records using access team, Forms are read only in UI but form state in JS as 'Update'

    Try this ribbonworkbench.uservoice.com/.../76681-hide-a-standard-out-of-the-box-button-based-on-a

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans