Download Form Message for Dynamics CRM on Codeplex
The form message solution can be found on CodePlex, it allows you to place custom messages onto a CRM form where you can define text and the image icon such as Success, Error, Information, Warning and Alert.
You can also choose to display the 2 buttons that can be customised with your desired label for example OK, Cancel, or Submit, Cancel, etc… and attach JavaScript functions as call back events for each one.
Form Message with Buttons displayed
Available Message Icons
Adding Form Message web resource to CRM Form
You can add initial/static text and an icon by supplying Custom Parameters such as text and type like this.
Usage
Form Message Functions include
showFormMessage(message, type, iFrame, iframeLoadedCallback) setFormMessageVisible(iFrame, isVislble) showMessageConfirmation(iFrame, successCallBack, cancelCallBack, successLabelOverride, cancelLabelOverride)
Form Message Types include
success alert warning error info
Display Form Message
DXTools.FormMessage.showFormMessage("This is a test Message.", "success", "WebResource_HeaderMessage", function () { });
Display Form Message with Buttons
DXTools.FormMessage.showFormMessage("This is a test Message.", "info", "WebResource_HeaderMessage", function () { DXTools.FormMessage.showMessageConfirmation("WebResource_HeaderMessage", function () { alert("yes") }, function () { alert("no"); }, null, null); }); });
Download Form Message for Dynamics CRM on Codeplex