JavaScript: How to populate Search Select Advanced field

The line "crm.fields("crep_address").value(crep_address);" in this code does not work which leads me to believe this is not how a Search Select Advanced box is populated. Is there documentation anywhere to show how this is done? My goal is to populate the Search Select Advanced box of course.

var personField = crm.fields("crep_personid");

var personID = personField.value();

var successPerson = function(crmRecord)


crep_address = crmRecord.pers_primaryaddressid;




entity: "person",

id: personID,

success: successPerson


Parents Reply Children
No Data