Hi good day do you have any idea why the two value save on 1 text field? and that field is the default name field on the form. and what i did is i set the lookup field value to automatically map on the name field and the lookup field gets the name of the shoes and upon saving it also gets the owner of the shoes. is there a way to for example the data that is save is "NIKE, SAM SMITH" do you have any idea how to remove the owner on the name field? this is the code that ive used to automatically map the lookup field to value to the text field
SetNameFromLookup: function () {
if(Xrm.Page.getAttribute("lookupField").getValue() != null){
var lookupField= Xrm.Page.getAttribute("lookupField").getValue()[0].name;
Xrm.Page.getAttribute("singleTextField").setValue(lookupField);
}
},
or is there a way that after i select on the lookup field it will triggered right away to mapped the data on the text field?
thanks for the help
*This post is locked for comments