Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Set field A to readonly when field B is changed ( field B is changed by a workflow)

(0) ShareShare
ReportReport
Posted on by 67

1. field A ( field in header) and "Revenue"(two option set) is on the same form of opportunity entity.

2. field  "Revenue"  is updated by a workflow.

3. I wanna set A to readonly when  "Revenue" field's value is changed to "system calculate" by workflow.

Q:

1. i try to add a business rule to do this but it not work.

2. i try to do this in js when form is [reload] or "Revenue"  is [on change] , but when workflow is done it seems neither [reload] nor [on change] is called.

Any Ideas?

Thank you

*This post is locked for comments

  • che Profile Picture
    67 on at
    RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

    does not work  ...... T_T

  • che Profile Picture
    67 on at
    RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

    i've just find it ,thank you ,i will try it now

  • che Profile Picture
    67 on at
    RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

    i'm sorry, could i know how to set a business rule to entity scope?

  • Suggested answer
    Ryan Maclean Profile Picture
    3,070 on at
    RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

    Have you tried setting the Business Rule to Entity scope and testing if it works?

  • che Profile Picture
    67 on at
    RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

    Hi Ahmed,

    Thank you for your answer!

    It's a good way to solve this problem, but the conditions of changing revenue is complex and that workflow has already released as a product.

    i wonder if there is anything else to deal with it?

    your anwser help me a lot. Thanks : )

    Regards.

  • che Profile Picture
    67 on at
    RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

    Hi Zimmermann,

    Thank you for your answer!

    i've tried this ,but it seems not work...

    : )

  • che Profile Picture
    67 on at
    RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

    Hi Ridhima,

    Thank you for your answer!

    my business rule's scope is set as "All form".

    There are 3 options "All form","opportunity","information" for select. and "opportunity", "information" is the name of form.

  • sardar ahmed Profile Picture
    520 on at
    RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

    Hi,

    This won't work, if the value is changed from workflow or JS, fields on change event wont trigger.

    You, can get rid of the workflow and write the script to change the revenue and also setting the field read only on the same script.

    Thanks and Regards

    Sardar Ahmed.

  • Suggested answer
    BlackBeard Profile Picture
    445 on at
    RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

    Hello,

    you can make this with a Businessrule in the Form :)

    Kind Regards

    Léon

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

    Hi Che,

    Have you checked with business rule scope: Entity?

    Thanks,

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans