Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Getting all fields from Form.

$
0
0

I am using below cde but its not working pls some one help me.

function getFieldListFromTab(tabId)
{
    var fieldList = new Array();

    var tab = Xrm.Page.ui.tabs.get(tabId);

    tab.sections.forEach(function (section, sectionIndex)
    {
        section.controls.forEach(function (control, controlIndex)
        {
            var attribute = control.getAttribute();

            if (attribute != null)
            {
                fieldList.push(attribute.getName());
            }
        });
    });

    return fieldList;
}

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images