Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Business Rule hiding a field its not referencing

(0) ShareShare
ReportReport
Posted on by 245

I have a weird issue with a business rule and I have spent a considerable amount of time trying to figure it out.  I thought i had it figured out with the limits on the business rule. I had 12 active rules. I reduced it to 10 which appears to be the limit and it still doesn't work.  I also reduced it to 7 active rules and the issue still exists.

Here is the issue:  

Rules 1 and 2:  If a two option set field, equals yes, show field A and show field B. If the two option set field does not equal yes,  hide A and B.

(One minor problem is there are records that aren't set to yes or no but it doesn't handle these.)

The main problems is this same rule is causing field C and D to HIDE.  Even though fields C or D are not referenced in this business rule AT ALL.  There is another business rule that does reference C or D but it has a different condition that says if a different option set equals any one of two values, then unlock fields C and D. If the option set doesn't equal those two values, then lock fields C and D.  We can call this business Rule 3 and 4.  If you disable Rule 1 and 2, then the fields in 3 and 4 shows up just fine and the rule works.  With 3 and 4 activated, fields C and D are never shown on the form until you change the option set value in field 1 even though that rule has nothing to do with it.   See attachment for rules. (Its a word document.  I hope that's allowed.)

 

 

 

*This post is locked for comments

  • slx Profile Picture
    slx 386 on at
    RE: Business Rule hiding a field its not referencing

    It could be easier to do it using javascript onChange event for each field:

    function setVisibleField(fieldname, show) {

       // show = {true, false}

       // exemplu: setVisibleField('jobtitle',false);

       if (fieldname != null)

           if (show == false) {

               Xrm.Page.getControl(fieldname).setVisible(false);

           }

           else {

               Xrm.Page.getControl(fieldname).setVisible(true);

           }

    }

  • Tara C. Brown Profile Picture
    Tara C. Brown 245 on at
    RE: Business Rule hiding a field its not referencing

    No. They were never renamed. Good thought.

  • Suggested answer
    RE: Business Rule hiding a field its not referencing

    Did you ever remame fields A-D? It might be picking up the old names of you switched them. Example remamimg field D to A.

  • Tara C. Brown Profile Picture
    Tara C. Brown 245 on at
    RE: Business Rule hiding a field its not referencing

    I couldn't post the word document. it gave an error.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans