Thanks for the reply.
So, set a state to the value of the element, and then I can reference the value in the pages’ dynamic sql?