Is there a Left Function equivalent for a template box? I only want to show the first 20 characters of a certain field while including additional characters from other fields.
I don’t think there is. I’ve looked for this as well and could not find anything functions other than the # truthy or ^ falsy.
The field where you will show this data should use renderer type “custom” The name should be the same as that you give the snippet.
The snippet should be of type “In-Line Snippet”
Here is the code:
// Only use the last four digits of a string (Like a SSN)
var field = arguments;
var value = arguments;
var minValue = value.substr(value.length - 4);
var text = “*--”+minValue;