var view = require("ui/core/view"); function pageLoaded(args) { var page = args.object; var textfield= view.getViewById(page, "textfieldID"); } var text = textField.text;