locked
How to add a script to Dynamics Online RRS feed

  • Question

  • Probably a pretty easy question for some but I'm not exactly sure how to proceed:

    I would like to make a field on the Contact Entity conditionally visible.  I have some JavaScript ready to go but I'm not exactly sure how I go about getting it added to the field.  I have VS2013, I believe I installed the right SDK - where do I go from here? Is there a project template that I should use?  Any help would be very appreciated

    Thursday, November 7, 2013 4:51 AM

All replies

  • Please refer following post to learn how to write JS code in ms crm 2011 and attach to event handler.

    http://ayazahmad.wordpress.com/2011/05/25/javascript-libraries-in-microsoft-dynamics-crm-2011/


    Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !
    Vikram !

    Thursday, November 7, 2013 4:59 AM
  • If you know the field and the condition

    this is how you hide it

    Xrm.Page.ui.tabs.get('new_fieldname').setVisible(false);

    if you are online with the 2013, you can click on the "..." that is on the menu of the entity form and select customise entity > click forms > forms properties.

    there you can find the javascript

    after add the javascript you need to publish it.

    With visual studio you can use the developer toolkit to deploy it by just clicking "deploy"


    I Hope I could help. If I have answered please mark as 'Answer'. If was just helpful, please vote. Thanks and happy coding! Bruno Lucas, http://dynamicday.wordpress.com/

    Thursday, November 7, 2013 7:23 AM