locked
Execute a ribbon's action via JavaScript RRS feed

  • Question

  • I've been trying to write some code that will fire a ribbon button's events from the form's JavaScript code. I've had limited success with the code but I've managed to get the following line:

    window.top.document.getElementById('xxxxx|NoRelationship|Form|Mscrm.Form.xxxxx.RunWorkflow-Large').disabled = true;

    to disable the button so I know that I'm referencing the right area. I've tried changing the '.disabled=true;' to '.onclick();' without any luck. Does anyone have a clue what I need to call in order to run the button's code?

    Wednesday, July 17, 2013 4:19 PM

Answers

All replies