How to redirect tab directly in dynamic CRM using JavaScript
Step 1: Go to form properties.
Step 2: click on parameter tab.
Step 3: Add one parameter like below
var formType = formContext.ui.getFormType();
if (formType === 2) {
if (formContext.data.attributes.get("param_focusCaseTab") !== undefined && formContext.data.attributes.get("param_focusCaseTab").getValue() !== null) {
var param_focusCaseTab = formContext.data.attributes.get("param_focusCaseTab").getValue();
if (param_focusCaseTab === true) {
formContext.ui.tabs.get("tab_cases").setFocus();
}
}
}
Comments
Post a Comment