I've been building my first Titanium Alloy app and I have a 5 step signup form that has different form fields spread across 5 views. On my last step I want to post the values of the form elements. What is the best way to access each fields value? eg. in screen5 how do I get the value of the $.name field in the screen1 view?
Here is some of my code:
<ScrollableView id="indexSV" showPagingControl="false" scrollingEnabled="false" top="0">
<Require src="screen1" id="screen1"></Require>
<Require src="screen2" id="screen2"></Require>
<Require src="screen3" id="screen3"></Require>
<Require src="screen4" id="screen4"></Require>
<Require src="screen5" id="screen5"></Require>
</ScrollableView>
and here is how the screens are structured:
<Alloy>
<View>
<Label top="20">YOUR NAME:</Label>
<TextField top="5" id="name" />
<Button top="20" right="10%" id="btnNext" width="120" onClick="next" class="next">NEXT STEP</Button>
</View>
</Alloy>