
Hi
I need your support on the following topic, as I don't have any experience in JS
I'm implementing a JS to concat firstname and surname fields in name field, and it was working fine, but I've deleted it (just from the form properties not from web resources) to test something, but when I put it back it didn't work
this is the code
function concatriskcompliancefields_onload()
{
var mohanade_firstname= Xrm.Page.getAttribute("mohanade_firstname").getValue();
var mohanade_surname = Xrm.Page.getAttribute("mohanade_surname").getValue();
Xrm.Page.getAttribute("mohanade_name").setValue(mohanade_firstname+ " "+mohanade_surname );
Xrm.Page.getAttribute("mohanade_name").setSubmitMode("always");
}and this is how I implement it
and this is the error I receive
Hello,
In your second screen where you register event handler replace concat by concatriskcompliancefields_onload.