Hey,
That tutorial specifically says " Add a text element to your page but do not connect it to the dataset. Your code will do the work instead".
We do not recommend applying data binding and code to the same element.
Please remove the dataset connection from the text element and test your code again.
Hope this helps!
Dara | Corvid Team