Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

I had alert function in the onsave of the form and it was working fine, but after adding to the ribbon button, the alert will pop up even if required fields are not filled

$
0
0

The alert function in the onsave of the form and it was working fine, but after adding to the ribbon button, the alert will pop up even if required fields are not filled, if i click on button and if req field is not filled, still the alert will pop up? do i need to modify my below code?

setFieldValue: function (primaryControl) {

var formContext = primaryControl;

var formContext = primaryControl.getFormContext(); //before i used executioncontext.getFormContext();

formContext.getAttribute("azmdc_assessmentsubmited").setValue("Assessment Submitted button clicked");
var alertStrings = { confirmButtonLabel: "", text: "Your Medical Device Classification Assessment Request has been successfully raised !!", title: "Confirmation" };
var alertOptions = { height: 120, width: 260 };
if (formContext !== null) {
Xrm.Navigation.openAlertDialog(alertStrings, alertOptions);
}
}


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images