locked
Field Customized event Error RRS feed

  • Question

  • I have customized the Account form , i added 3 tabs with attributes and LookUps.

     

    when i published the new customization, and each time i open an existing account, i receive the following error:

    There was an error with the field's customized event.

    Field: window

    Event: onload

    Error:'crm.all.IFRAME_spdoclibrary' is Null or not an object

     

    can i know how can i solve this please?

     

    thanks

     

    Tuesday, March 23, 2010 1:06 PM

Answers

  • Hi,

    Just Check your onload code


    Mahain
    • Marked as answer by GKSPLB Tuesday, March 23, 2010 1:25 PM
    Tuesday, March 23, 2010 1:20 PM
    Moderator
  • In the Form customization for your Account entity (where you removed the tab), click Form Properties at the bottom-right then select "OnLoad" and click Edit
    • Marked as answer by GKSPLB Tuesday, March 23, 2010 1:25 PM
    Tuesday, March 23, 2010 1:21 PM
  • Settings --> Customization --> Account (Open account form) --> Forms & views --> form properties--> Onload.

    change "crm.all.IFRAME_spdoclibrary" to "crmForm.all.IFRAME_spdoclibrary"

    • Marked as answer by GKSPLB Tuesday, March 23, 2010 1:25 PM
    Tuesday, March 23, 2010 1:22 PM
  • Go to the customization form then in the properties, you have a tab that contains onload and onsave javascript event

    And in each field, you have the same tab with onChange event


    My blog : http://mscrmtools.blogspot.com
    You will find:
    Bulk Delete LauncherView Layout replicator
    ISV.Config Manager Form Javascript Manager
    Assembly RecoveryAnd others (use tool tag on my blog)
    • Marked as answer by GKSPLB Tuesday, March 23, 2010 1:25 PM
    Tuesday, March 23, 2010 1:22 PM
    Moderator

All replies

  • have use used as 'crm.all' insie code?

    hope it should be 'crmForm.all'

    Regards
    Vinoth

    Tuesday, March 23, 2010 1:09 PM
  • check form on-load event, is it there any javascript in form on-load event?
    http://www.allaboutdynamics.com
    Tuesday, March 23, 2010 1:10 PM
  • I'm writing no Code i'm even not using VS, all what i did is the out of the box Customization
    Tuesday, March 23, 2010 1:11 PM
  • It looks like you have custom javascript on the OnLoad event for Account that uses

    "crm.all.IFRAME_spdoclibrary"

    when it should be "crmForm.all.IFRAME_spdoclibrary"

    Tuesday, March 23, 2010 1:11 PM
  • it is clearly not a out of the box customization...

    There must be an Iframe on your form...


    My blog : http://mscrmtools.blogspot.com
    You will find:
    Bulk Delete LauncherView Layout replicator
    ISV.Config Manager Form Javascript Manager
    Assembly RecoveryAnd others (use tool tag on my blog)
    Tuesday, March 23, 2010 1:12 PM
    Moderator
  • Ok as it seems it might be something related to a sharepoint integration, i have removed a tab called "Integration option".

     

    Honestly i'm new to CRM i need to see where i can check the javascript code for CRM so that i disable to function checking for the integration option tab or IFRAME

     

    thanks

    Tuesday, March 23, 2010 1:17 PM
  • Hi,

    Just Check your onload code


    Mahain
    • Marked as answer by GKSPLB Tuesday, March 23, 2010 1:25 PM
    Tuesday, March 23, 2010 1:20 PM
    Moderator
  • In the Form customization for your Account entity (where you removed the tab), click Form Properties at the bottom-right then select "OnLoad" and click Edit
    • Marked as answer by GKSPLB Tuesday, March 23, 2010 1:25 PM
    Tuesday, March 23, 2010 1:21 PM
  • Settings --> Customization --> Account (Open account form) --> Forms & views --> form properties--> Onload.

    change "crm.all.IFRAME_spdoclibrary" to "crmForm.all.IFRAME_spdoclibrary"

    • Marked as answer by GKSPLB Tuesday, March 23, 2010 1:25 PM
    Tuesday, March 23, 2010 1:22 PM
  • Go to the customization form then in the properties, you have a tab that contains onload and onsave javascript event

    And in each field, you have the same tab with onChange event


    My blog : http://mscrmtools.blogspot.com
    You will find:
    Bulk Delete LauncherView Layout replicator
    ISV.Config Manager Form Javascript Manager
    Assembly RecoveryAnd others (use tool tag on my blog)
    • Marked as answer by GKSPLB Tuesday, March 23, 2010 1:25 PM
    Tuesday, March 23, 2010 1:22 PM
    Moderator