Hello all,
I have a template in a column in which I want to dive into logic and show or now show a link based on other values
and the function is something simple like
It works except the output is encoded.
So instead of seeing "Log"
I see "
Thanks!
I have a template in a column in which I want to dive into logic and show or now show a link based on other values
{ title: "Job Location Notes", template: "${ showLogLink(JobLocationNotes,JobID) }" },and the function is something simple like
function showLogLink(JobLocationNotes, JobID) { if (JobLocationNotes != null && JobLocationNotes != "") { return JobLocationNotes + " <a href='javaScript:;' data-url='../ModalWindows/JobLocationNotes.aspx' title='Location Notes' class='jobLocationLink' data-id='" + JobID + "'>Log</a>"; } else { return ""; }}It works except the output is encoded.
So instead of seeing "Log"
I see "
<a href='javaScript:;' data-url='../ModalWindows/JobLocationNotes.aspx' title='Location Notes' class='jobLocationLink' data-id='7'>Log</a> "Thanks!