Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

can't attach scripts to forms

Posted on by Microsoft Employee

I'm trying to attach a script to a standard form - following steps here: http://msdn.microsoft.com/en-us/library/gg594433.aspx

I am able to upload script as Web Resource and reference it in form properties. But I am not able to configure an event handler to call any function. When I try to add an event handler, I can't reference a script library (the Library dropdown list is empty) and it's not possible to submit the dialog without this reference. When I close the Handler Properties - Webpage Dialog, it throws an error. I experienced the very same behavior on both Online and On-Premise deployments (version 2015).

Here are some screenshots.

screenshot_5F00_handler_5F00_properties.png

8168.screenshot_5F00_error.png

Please advice what am I supposed to do to be able to attach scripts to forms as it is quite important to our clients.

Thank you

*This post is locked for comments

  • Soma Shekar Profile Picture
    Soma Shekar 461 on at
    RE: can't attach scripts to forms

    Hi,

    Take the current organization default solution and import it in other environment like trial online  CRM , and  attache your libraries and field/form events in online trial, then take the specific customization  to an unmanged solution and reimport into your Organization , it will works

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: can't attach scripts to forms

    Thank you Guido, that helped

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: can't attach scripts to forms

    Not on my current machine, but will try to find one. I will keep you posted, thank you.

  • Deepesh161 Profile Picture
    Deepesh161 6,317 on at
    RE: can't attach scripts to forms

    Can you try it from IE10?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: can't attach scripts to forms

    I am using Internet Explorer 11.0.9600.17498 on a Windows 8.1 x64 machine and I run updates quite frequently.

    I experienced the behavior on Account and Contact entities and also on my custom entities.

  • Suggested answer
    ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: can't attach scripts to forms

    If you are using CRM2015 - only IE10+ is supported .

    See technet.microsoft.com/.../hh699710.aspx

  • Suggested answer
    Deepesh161 Profile Picture
    Deepesh161 6,317 on at
    RE: can't attach scripts to forms

    Is it happening on all your standard entities/specific one?

    What is the version of IE , see if there was a update installed on IE recently.

  • RE: can't attach scripts to forms

    Different browsers? I  had issues with CRM and Chrome, Firefox etc while trying to do the same.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: can't attach scripts to forms

    Thank you for a quick response.

    The behavior is the same unfortunately. I've tried default solution, custom solution, OOTB entities/forms, custom entities/forms and combinations of all that. I published every change I made. Nothing helped.

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans