Changing Search Select Advanced display fields

Less than one minute read time.

CRM allows you to change the display fields used in an Search Select Advanced (SSA) field but it does not give you control over the order of the fields displayed.

The following function, placed in the custom content of the screen, will allow you to change the order of the display fields:

window.attachEvent('onload', function () {
// change the following line to have the field you wish to change, and the field list you desire
ChangePopUpFields('oppo_primarypersonid', 'Addr_Address1,Addr_Address2,Addr_Address3,Addr_Address4');
});

It also lets you change the fields used in the SSA field dynamically. For example, say you wanted to reverse the field order after the oppo_primarycompanyid field was modified. To do this you would put the following code into the OnChangeScript:

ChangePopUpFields('oppo_primarypersonid', 'Addr_Address4,Addr_Address3,Addr_Address2,Addr_Address1');