locked
calling Jscript functionality one form to another form MSCRM 2011 RRS feed

  • Question

  • HI,

    Can I call the single function functionality from one form to another form in MSCRM 2011.
    I have an Account form and its having 2 sub forms Local Accounts and NonLocal Accounts
    LocalAccounts and Non localAccounts is having the same picklist values

    Picklist Values:

    1.Address Status(Yes, No)
    2.Order Details(Yes, No)

    I placed the above picklsit values in 2 forms

    Non Local Account form is having the Address Status and Order Details Tabs.

    Local Account form is having only the attributes on the form it doesn't contain any Address Status and Order Details Tabs.
    But my concern is when I'm selecting the values in the Local Account form Address Status = Yes and Order Details = No after saving the record when I will try to open the Non Local Account form Address tab is visible and Order Details Tab should be hide.

    Can we achieve this kind of functionality in MSCRM 2011? is yes please let me know how can we reslove?

    Thanks,


    Thanks, Toushu

    Monday, January 27, 2014 2:28 PM

Answers

All replies

  • You can achive this by javascript.

    OnLoad of NonLocal Accounts call javascript function to get the information of Local Account and based on that hide Address tab and Order Details Tab of NonLocal Accounts.

    Tuesday, January 28, 2014 6:09 AM
  • Suresh,

    Thanks for the information
    If do you have any sample code can please share with me that can be very helpful to me.

    Thanks,


    Thanks, Toushu

    • Proposed as answer by crm-user-crm Wednesday, January 29, 2014 1:09 PM
    Tuesday, January 28, 2014 6:26 AM
  • Hello,

    You need to your library to all of your form and then can write javascript function to hide it accordinly. Please check Client Side Programming Ref in SDK for code sample.


    Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    • Marked as answer by Rahul-22 Thursday, January 30, 2014 12:26 PM
    Tuesday, January 28, 2014 11:06 AM
    Moderator
  • Thanks, Mahinder

     

    I have separated my Jscript code and calling the appropriate onload function for the forms its working fine.

    Thanks,


    Thanks, Toushu

    • Marked as answer by Rahul-22 Thursday, January 30, 2014 12:29 PM
    Thursday, January 30, 2014 12:29 PM