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

Popular posts from this blog

latest dynamics 365 interview questions for more than 2 years of experience

difference between enable rule vs display rule in ribbon workbench

If i create one record that created record date is older than 3 days, then I want to perform some operation with the help of business rule.