Hello,
I have modified the SData code slightly from the original example 1 on the api help site and it works except.. when there is a space in the option value eg: "SUMMER BALL", it is ignored. If the value is one word "SUMMERBALL" is works.
I understood that when the choices were added to a selection list, the Code is provided for the purpose of selecting behind the scenes and to use in code such as this.
It doesn't appear to work at all in IE 11 but in Chrome, it does select an option just not the right one into the field if the code has two or more words in the translation. The code is being used in the OpportunityDetailBox - CustomContent.
/*
crm.ready(function()
{
var oContextInf = crm.getArgs();
if ((oContextInf.Act == "1190" || oContextInf.Act == "261" || oContextInf.Act == "142"))
{
var compID = crm.fields("oppo_primarycompanyid").value();
var successCompany = function (crmRecord)
{
crm.infoMessage("The company would like to be invited to the :" + crmRecord.comp_invitetotheball);
crm('oppo_invitetotheball').value(crmRecord.comp_invitetotheball);
}
crm.sdata({
entity: "company",
id: compID,
success: successCompany
});
}
}); */
Thank you for any helping tips you can give.
Regards,
Penny