So I'm just trying to save values from textfields to variables javascript.
I'm seeing that I should do something like this from another post
var view = require("ui/core/view");
function pageLoaded(args) {
var page = args.object;
var textfield= view.getViewById(page, "textfieldID");
}
however, I do not really understand how exactly I should be using it. where do I call pageloaded and what arguments?