Please try below code instead of alert box it will be displayed on form.
set_Notification(2, 'source', 'Business Phone must contain 10 numbers.');
Dynamics 365 , Microsoft Dynamics CRM, CRM 2016,Dynamics 365,Plugins,javascript,Plugin,C#.net ,Dynamics Customer Engagement MS CRM 2011,MS CRM 2013, Work FLows, Real Time worklfows, Customer worklfows,Dynamics365,MB 901 certification,
The view we call it as “Associate View” and it contains buttons with below naming convention
<CustomAction Id=”Mscrm.SubGrid.{Entity Name}.AddNewStandard.CustomAction” Location=”Mscrm.SubGrid.{ Entity Name}.AddNewStandard” Sequence=”210″>
<CommandUIDefinition>
<!–New Button Id – AddNewStandard; Existing Button Id – AddExistingStandard–>
<Button Id=”Mscrm.SubGrid.{Entity Name}.AddNewStandard“
Command=”Mscrm.AddNewRecordFromSubGridStandar d”
Sequence=”20″
LabelText=”My Custom Text“
Alt=”My Custom Text“
Image16by16=”/_imgs/ribbon/NewRecord_16.png” Image32by32=”/_imgs/ribbon/ newrecord32.png”
TemplateAlias=”o1″ ToolTipTitle=”Add New Contact”
ToolTipDescription=”$Resources(EntityDisplayName): Mscrm_SubGrid_ EntityLogicalName_MainTab_ Management_AddNewStandard_ ToolTipDescription” />
</CommandUIDefinition>
</CustomAction>