Typically query for user input is done with dialog. In silica via have Dialog component that follows Sailfish style:
https://sailfishos.org//sailfish-silica/qml-sailfishsilica-dialog.html