Hi Gerald,
Please follow the below steps in order to save the record after certain field filled in.
1. Create a function which will trigger on change of targeted fields
function saveRecordOnChange(executionContext){
try{
// Form Context
let formContext = executionContext.getFormContext();
// If Form Context is valid
// Then save record
if(formContext){
// Save the Record
formContext.data.save();
}
}
catch(ex){
throw new Error(ex.message);
}
}
OR
If you want to prompt user for confirmation than you can use below code and put save() method inside the success function of Confirm Dialog as below:
function saveRecordOnChange(executionContext) {
try {
// Form Context
let formContext = executionContext.getFormContext();
// If Form Context is valid
// Then save record
if (formContext) {
let confirmStrings = { text: "This is a confirmation.", title: "Do you want to save this record?" };
let confirmOptions = { height: 200, width: 450 };
// Open Confirm Dialog
Xrm.Navigation.openConfirmDialog(confirmStrings, confirmOptions).then(
function (success) {
if (success.confirmed) {
// Save the Record
formContext.data.save();
}
});
}
}
catch (ex) {
throw new Error(ex.message);
}
}
2. After creating function add the function to the OnChange event of targeted fields using the form properties as shown below:

3. Click on Save and Publish the forms.
Hope this helps!