Thanks, the below code did the trick. This was where I was looking for. Many thanks
draft.tags.map(strTag =>
{
if(strTag.toLowerCase().startsWith(“with”)) draft.setTemplateTag(“nametag”, strTag.slice(4))
});
Thanks, the below code did the trick. This was where I was looking for. Many thanks
draft.tags.map(strTag =>
{
if(strTag.toLowerCase().startsWith(“with”)) draft.setTemplateTag(“nametag”, strTag.slice(4))
});