hi guys does anyone know how to change my alert message into toast alert message.. please help here my code
action.setCallback(this,function(a){
//get the response state
var state = a.getState();
//check if result is successfull
if(state == "SUCCESS"){
//Reset Form
var newContact = {'sobjectType': 'Contact',
'contact_FNAME__c': '',
'contact_LNAME__c': '',
'Email': '',
'Phone': ''
};
//resetting the Values in the form
component.set("v.Contact",newContact);
alert('Record is Created Successfully');
} else if(state == "ERROR"){
alert('Error in calling server side action');
}
});
//adds the server-side action to the queue
$A.enqueueAction(action);
}