web
You’re offline. This is a read only version of the page.
close
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 247

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

I have the same question (0)
  • Tara C. Brown Profile Picture
    247 on at

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

  • Suggested answer
    Community Member Profile Picture
    on at

    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
    247 on at

    No. They were never renamed. Good thought.

  • slx Profile Picture
    386 on at

    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);

           }

    }

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans