If you just want to change how the field is labeled on the form, you can do:
Xrm.Page.getControl("ControlName").setLabel("New Label");
var formContext = executionContext.getFormContext();
formContext.getControl("new_name").setLabel("Name");
If you just want to change how the field is labeled on the form, you can do:
Xrm.Page.getControl("ControlName").setLabel("New Label");
var formContext = executionContext.getFormContext();
formContext.getControl("new_name").setLabel("Name");
function ValidateMaintenanceEndDate(executionContext)
{
var formContext = executionContext.getFormContext();
var startDateField = formContext.getAttribute("new_maintenancestart");
var endDateField = formContext.getAttribute("new_maintenanceend");
var endDateFieldControl = formContext.getControl("new_maintenanceend");
var startDate = startDateField.getValue();
var endDate = endDateField.getValue();
if (startDate != null && endDate != null)
{
startDate = new Date(startDate.toISOString().substr(0, 10));
endDate = new Date(endDate.toISOString().substr(0, 10));
endDateFieldControl.clearNotification("ErrEndDate");
if (startDate >= endDate)
{
endDateFieldControl.setNotification("cannot be before or equal to Maintenance Start.", "ErrEndDate");
}
else
{
endDateFieldControl.clearNotification("ErrEndDate");
}
}
}
When using Microsoft Flow the out-of-the-box button is nested under the ‘Flow’ section and is not easy to find nor is it customizable. Tri...