Confirmation Popup when saving
Posted: 20 Apr 2015
Hello, I have this scenario:
2 Required Fields (Set as required in SharePoint List)
2 Fields that may be required based on another field value.
What I need is that once I hit the Save button, to show a Popup telling the user the Item was saved successfully. This is the code I have for the validation:
var main_field = fd.field('RequestType);
fd.onsubmit(function () {
if (main_field.value() == 'Type1') {
if (!fd.field('Address').value()) {
alert('Please, fill in the Address field.');
return false;
} else if (!fd.field('Mobile').value()) {
alert('Please, fill in the Mobile field.');
return false;
}
}
return true;
});
Regards,
2 Required Fields (Set as required in SharePoint List)
2 Fields that may be required based on another field value.
What I need is that once I hit the Save button, to show a Popup telling the user the Item was saved successfully. This is the code I have for the validation:
var main_field = fd.field('RequestType);
fd.onsubmit(function () {
if (main_field.value() == 'Type1') {
if (!fd.field('Address').value()) {
alert('Please, fill in the Address field.');
return false;
} else if (!fd.field('Mobile').value()) {
alert('Please, fill in the Mobile field.');
return false;
}
}
return true;
});
Regards,