An example of how to create a data collection application using ESRI Javascript API