in CDS.solutions/EducationAcceleratorCommon/Extracts/Base/WebResources/mshied_/Scripts/Utilities/formUtil.js [8:31]
function navigateToForm(formContext, formId) {
if (!formContext || !formContext.ui) {
return;
}
var currentForm = formContext.ui.formSelector.getCurrentItem();
// Null if only one form avaialble, so navigate isn't needed
if (!currentForm) {
return;
}
var navigateToForm = formContext.ui.formSelector.items.get(formId);
if (!navigateToForm) {
return;
}
// Trying to naviaget to the already selected form? skip
if (currentForm.getLabel() === navigateToForm.getLabel()) {
return;
}
navigateToForm.navigate();
}