Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Business Rules and Multiselect option field

Posted on by 75

Hi guys,

I just discovered I cannot use business rules to a multiselect field. The idea is to show a mutliselect field on an account form based on a pick list from another field on the same form.

Questions:

  • which fields are not available in business rules set up
  • What is the workaround expect JavaScript

Cheers

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Business Rules and Multiselect option field

    Hi rhipe,

    Except for MultiSelect Option Set field, Whole number and calculated field also cannot be used in Business rules.

    You can show a mutliselect field based on a pick list from another field on the same form with JavaScript.

    Here are steps.

    1. JS code

    function showmuitiselect(executionContext) {
        var formContext = executionContext.getFormContext();
        var selectedValues = formContext.getAttribute("new_samplemultiselect1").getValue();
        var control = formContext.getControl("new_samplemultiselect2");
        if (selectedOptionsValues == 0) {
            control.setVisible(false);
        }
        else {
            control.setVisible(true);
        }
    }
    

    2. Add your JavaScript code in a Script web resource.

    51.png

    3. Associate Script web resource to a form.

    52.png

    4.Test.

    Only when you select A in the Sample Multi Select1 field, the Sample Multi Select2 field will be shown in the form.

    53.png

    54.png

    Regards,

    Clofly

  • Suggested answer
    RE: Business Rules and Multiselect option field

    Hi Partner,

    Multiselect option set fields are currently not available for business rules set up.

    Reference link: https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/257411/how-to-apply-business-rules-to-a-multi-select-option-set?pifragment-97030=1

    Additionally you can refer this link wherein CRM idea has already created, https://experience.dynamics.com/ideas/idea/?ideaid=629df4af-e5c5-e911-b083-0003ff68bfb4

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans