Hi @Ana Andrade,
You want to go to a page after typing a number of letters? Or after pressing a certain key (like 'Enter', perhaps)?
For the TextVar element it might be the variable's name Márcio created. You should replace the expression (If) with your text variable used in the Search widget.