top of page
Forum Posts
goedigital
Feb 19, 2022
In Forum Discussions
Hello Guys, I am having issues truncating string that are linked to a database. When it is not linked the code works but when its connected to a dataset it doesn't work. What am I missing? Here is my code. function truncate(string,limit){
return string.length > limit ? `${string.substr(0,limit)}...` : string;
}
$w('#text47').text. = truncate($w('#text47').text, 8);
Your help would be greatly appreciated! Sincerely, ~ Gil
0
0
4
G
goedigital
More actions
bottom of page