## Automatic Variable Creation You can have Lightview create reactive variables for you but setting `Lightview.createInputVariables=true`. Then you can use very generic code event listener to collect the values when they change and do something with them. Lightview has a special `addEventListener` similar to web workers, it is not called from an object, it is free standing in the scope of a Lightview script. Currently, the only events this handles are change events on variables. Conveniently, components have a method `getVariableData` that returns all variable values as an object keyed by variable names. *Note*: Reactive variables bound to forms change their values whenever there is input to a field, not just when the field value changes due to a focus change. See the API documentation on [Lightview.createInputVariables](../api.html#createInputVariables).