Hi,
I'm trying to do an if like statement with the ClientTemplate Formatting, for basic usage this works:
#= (Location == "") ? 'N/A' : Location #
If the Location is empty it Displays N/A as needed, but if i try and make it a bit more advanced for another field i.e:
#= (AssignedToPhone == "") ? 'N/A' : '<a href="tel:AssignedToPhone" class="btn-link">AssignedToPhone</a>' #
I don't get any errors, but it renders as a link with the text as AssignedToPhone, how do i get it to show the actual value? I have also tried:
#= (AssignedToPhone == "") ? 'N/A' : '<
a
href
=
"tel:#=AssignedToPhone#"
class
=
"btn-link"
>#=AssignedToPhone#</
a
>' #
This causing an error, and no render happens "Uncaught Error: Invalid template:' (then a bunch of HTML)"