Pass dynamic data to JS function

need to pass the value of a sc.data field to a JS.Function for eval and then it will return a correct text to display, please advise the proper syntax

document.getElementById("result").innerHTML = merritcourse(dmx.app.data.serverconnect.data.courseTitle,dmx.app.data.serverconnect.data.meritCourseTitle,dmx.app.data.serverconnect.data.employeeName);
Community Page
Last updated: