define( function() { "use strict"; function PageModule() { }; function myvalidator(aValues) { alert("There is a hidden prompt on this page. When you press OK, the prompt value will be set and the Finish button 'clicked' for you"); return (aValues =='Camping Equipment'); } PageModule.prototype.load = function( oPage ) { var oControl = oPage.getControlByName( "TEXT1" ); var selection = [{'use': 'Camping Equipment'}]; oControl.setValues(selection); var mySetValue=oPage.getControlByName( "TEXT1" ); oPage.getControlByName("TEXT1").setValidator(myvalidator.bind(null, mySetValue)); }; return PageModule; });