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 :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Hiding about 12 fields with one business rule

(0) ShareShare
ReportReport
Posted on by 48

Hi all,

I have 12 fields that I need to hide if they don't contain any data. If they do contain data then they need to show up on the form. I tried doing this using a business rule but the number of conditions that I can add seems limited. (about 7 I think)

How should this rule be implemented?

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    I would recommend writing the JavaScript. Much easier and more compact.

  • Eiken Profile Picture
    Microsoft Employee on at

    Hi,

     It is up to 10 IF-ELSE condition supported in one business rule, so we had to create 12 business rules.

    Now JavaScript is much more recommended, you can refer to the following steps.

    1.JavaScript code

    I control the display and hiding of two fields. If you want more, please copy the part of the highlighted code in my image.

    pastedimage1670390165249v1.png

    2.Add load event

    Add the JS file to the Form libraries.

    pastedimage1670390188501v2.png

    Add Load Event to the test form.

    pastedimage1670390239405v3.png

    Then when you open and load one form, the fields will be controlled to show or not.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 30 Super User 2026 Season 1

#2
NeerajPawar Profile Picture

NeerajPawar 22

#3
Encore Business Solutions Profile Picture

Encore Business Sol... 14

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans