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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to use Business Rules to show Field on form based on value of another field?

(0) ShareShare
ReportReport
Posted on by

So I created a Business Rule with an If..Then condition to show a field on a form based on if a different field equals a specific value.

The problem is it isn't working! I made sure it was activated.  I tried by putting the field I want to show on the form and also removing it from the form but it doesn't toggle based on the value of the field I entered.

I'm not sure what step I'm missing?

*This post is locked for comments

I have the same question (0)
  • CRM Learner 88 Profile Picture
    on at
    RE: How to use Business Rules to show Field on form based on value of another field?

    Actually the field seems to show up only after saving and refreshing the page.  Is there a way to control instantly to make it appear based on the value of a field using Business Rules?

  • Chadi Tannous Profile Picture
    1,039 on at
    RE: How to use Business Rules to show Field on form based on value of another field?

    can you please show us the business rule.

    also note that the filed should be in the form

  • Verified answer
    Chadi Tannous Profile Picture
    1,039 on at
    RE: How to use Business Rules to show Field on form based on value of another field?

    also make sure to include an else action

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: How to use Business Rules to show Field on form based on value of another field?

    It actually execute right after the form is loaded. It will execute after the form is loaded if it is activated.

    Take a look at the execution order:

    >Any system scripts are applied first.

    >Any logic in custom form scripts is applied.

    >Logic in business rules is applied.When there are multiple business rules, they are applied in the order they were activated, from oldest to newest.

    crmbusiness.wordpress.com/.../crm-2013-understanding-business-rules

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at
    RE: How to use Business Rules to show Field on form based on value of another field?

    Hi,

    Business rules only work on load and on change events. It could trigger on the load of the forms or on change of the fields.

    Please try changing the value of the other field and see if the required field is showing or hiding.

    See: community.dynamics.com/.../understanding-process-triggers-and-business-rule-internals

  • CRM Learner 88 Profile Picture
    on at
    RE: How to use Business Rules to show Field on form based on value of another field?

    I don't know if I put an else, just if Field1 = x then Field Y has visibility. Is an else needed?

    It only seemed to work when I did the opposite but they was only after saving and refreshing.  Once the form is loaded will the business rule allow the field to display when the other option set is toggled or does it always have the be saved and refreshed?

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: How to use Business Rules to show Field on form based on value of another field?

    Hi,

    You will need to create two Business Rules which are as follows.

    1. Business Rule to show field-2

       Check field-1 have some value then

             Show your field-2

    2. Business Rule to hide field-2

       Check field-1 doesn't have some value then

             Hide your field-2

    Please mark as Answered if this helps,

    Thanks & Regards,

    Himanshu Prajapati

  • Verified answer
    ashok teja Profile Picture
    290 on at
    RE: How to use Business Rules to show Field on form based on value of another field?

    Hello, 

    Business rules works on load, on field change as well, Here I'm giving an example, this might helps you to figure out your issue. 

    Ex:- If fax contains data then I'm showing website otherwise I'm hiding it.  

    showhide.PNG

    1. Ensure to add else condition.

    2. Ensure to set scope to 'All Forms'.

    Thanks

    Ashok J

    XRMWEBKIT | CRMPORT | DynamicsHelpmate 

  • Verified answer
    Community Member Profile Picture
    on at
    RE: How to use Business Rules to show Field on form based on value of another field?

    I guess what they said is correct, you need an ELSE

    if (value = x)

    show field

    else

    hide field

  • CRM Learner 88 Profile Picture
    on at
    RE: How to use Business Rules to show Field on form based on value of another field?

    Thank you everyone! Adding the else condition made it work.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans