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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Help with Business Rule

(0) ShareShare
ReportReport
Posted on by 220

Hello,

I need some help with a business rule, which I can’t seem to get to work. In fact the first part up until

“THEN

Hide field Product Detail2”

Works as expected. The section of the business rule which does not work is from below onwards: 

“ELSE IF

Product Detail2 contains data

THEN .......”

The query in full can be seen below, any advise you can give is welcomed.

IF

Product code does not equal "A ,B, C,D,E” AND Product Detail1 contains data

THEN

Show field Product Detail2

ELSE IF

Product Detail1 does not contain data

THEN

Hide field Product Detail2

ELSE IF

Product Detail2 contains data

THEN

Show field Product Detail3

ELSE IF

Product Detail2 does not contain data

THEN

Hide field Product Detail3

Thank you

Ladga

I have the same question (0)
  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    If the Rules are complex, then please switch to Javascript instead of UI Business Rule.. as the BR is hard to maintain & keep updated but its really simple & useful for simple Admin stuffs.

  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at

    Hi partner,

    You could divide your rule into two rules and it well work perfectly.

    As you can see in the below picture, I have 2 business rules in my form.

    pastedimage1579149770404v1.png

    The first one is begin from " IF Product code does not equal"...to "Hide field Product Detail2".

    pastedimage1579149997944v2.png

    The second one is the rest part.

    pastedimage1579150085789v3.png

    And here is the result.

    In default it only show "product code" and "product detail1".

    pastedimage1579150137331v4.png

    If we choose product code as "G" and fill some value to product detail1, the product detail2 will display.

    pastedimage1579150183246v5.png

    Then if we fill some value in product detail2, the field product detail3 will show.

    pastedimage1579150221825v6.png

    Hope it helps.

    Best Regards,

    Leo

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 103 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 83

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans