Instead of: set the HTMLText of VarHTMLText to URL VarURL Use: set the HTMLText of the templateField to URL VarURL And instead of: get the effective HTMLText of VarHTMLText2 Use: get the effective HTMLText of the templateField