Use text value to set local page variable

Hi all! Is it possible to set the local page variable based on a text value? So I have this text widget below that constantly being updated depending on the database. I would like to pass this value to my local variable so that I can do some kind of comparison. Thanks!

1
2 replies