Navigating to page defined by dynamic page element

i think you should try this:

let myValue = $w("#myElement").value; // "42"

text is meant for textbox and not for user input
http://www.wix.com/code/reference/$w.TextInput.html#value

Shlomi