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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Sales forum / JavaScript doesn't...
Sales forum

JavaScript doesn't apply in Bulk edit CRM 2016

(0) ShareShare
ReportReport
Posted on by 87

i have JavaScript filter on lookups in Onload event its work fine when open form but when select more than one record to bulk edit the filter doesn't work, there is no javascript code apply when using bulk edit, so please if there are someone has solution for this 

Thanks 

I have the same question (0)
  • Suggested answer
    Indika Abayarathne Profile Picture
    671 on at

    I think the that's the correct behaviour. For one record javascript is working as it has one context, but if you select many records different contexts are there.

    E.g. Assume your OnLoad JS has a condition such as, if status == Draft, then Do Something

    In this case, JS has many different status' from many records.

    That's my idea and hope that makes sense.

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    there is no solution for this. this is standard behavior.

  • Verified answer
    Mebo Profile Picture
    87 on at

    Guys,

    thanks for trying to help me i solved it by edit in "Customization.xml" of the solution in Event Onload add BehaviorInBulkEditForm="Enabled"

    Regards..

  • Community Member Profile Picture
    on at

    But this is unsupported or?

  • djbryson Profile Picture
    2 on at

    "I think the that's the correct behaviour. For one record javascript is working as it has one context, but if you select many records different contexts are there.

    E.g. Assume your OnLoad JS has a condition such as, if status == Draft, then Do Something

    In this case, JS has many different status' from many records.

    That's my idea and hope that makes sense."

    ------
    @Indika Abayarathne

    No, that doesn't make sense.  Bulk edit forms don't load values, since it's multiple records.  Bulk edit forms are blank, and used to set values.   Setting BehaviorInBulkEditForm to Enabled will enable Javascript, although only onload it seems
    https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/events-forms-grids?tabs=add-event-handlers-legacy

     

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Sales

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans