Display substring of a field?

Is it possible to display a substring of a field in a card?

For example, notes have a field named Seq with data like “Seq001”,“Seq002”,“Seq003”,etc. On the cards, I would like to display only “001”, “002”,“003”,etc. In other words, the card template would have something like “substring({{Seq}},4,3)” (or whatever is a sensible syntax).

Frontside:

<div id="newseq"></div>
{{Front}}

<script>

var str = "{{Seq}}";
var res = str.substring(3);
document.getElementById("newseq").innerHTML = res;

</script>
1 Like

Perfect, thank you! I know some Javascript but clearly not enough. I will do some reading and practicing to get more competent in my scripting.